Permalink
Browse files

minor readme js comment

  • Loading branch information...
1 parent 8ab185d commit e03158f4db239cd97b066b3f8641f63b83d7fe79 Edward Hotchkiss committed Dec 16, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 README.md
View
@@ -12,6 +12,13 @@ $ npm install mongoose-paginate
## Usage
```javascript
+
+/*!
+ Basic example usage of `mongoose-pagination`
+ Querying for `all` {} items in `MyModel`
+ Paginating by second page, 10 items per page (10 results, page 2)
+ */
+
var paginate = require('mongoose-paginate');
MyModel.paginate({}, 2, 10, function(error, paginatedResults) {

0 comments on commit e03158f

Please sign in to comment.