Permalink
Browse files

update readme

  • Loading branch information...
1 parent a027292 commit 47cef8a52355bb83e2838741e31ece8f39768be8 @tblobaum committed Mar 13, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 README.md
View
@@ -18,7 +18,7 @@ A collection of handy plugins for mongoose
* [removeDefaults](#removedefaults) (remove default values from a document)
* [getdbrefs](#getdbrefs) (find all document DBRefs)
-The annotated source can be found [here](http://tblobaum.github.com/mongoose-troop/docs/)
+<!-- The annotated source can be found [here](http://tblobaum.github.com/mongoose-troop/docs/) -->
***
@@ -342,7 +342,7 @@ Simple query pagination routines.
* `defaultQuery` Query to use if not specified (optional, default `{}`)
* `defaultLimit` Results per page to use if not specified (optional, default `10`)
-* `defaultFields` Fields to use if not specified (optional, default `[]`)
+* `defaultFields` Fields to use if not specified (optional, default `{}`)
* `remember` Remember the last options used for `query`, `limit`, and `fields` (optional, default `false`)
### Methods
@@ -406,7 +406,7 @@ FooModel.paginate({
page: 2
, query: { count: { $gt: 25 } }
, limit: 25
-, fields: 'field1, field2'
+, fields: { 'field1: 1, field2': 1 }
}, function(err, docs, count, pages, current) {
// docs.length = 5

0 comments on commit 47cef8a

Please sign in to comment.