Browse files

change fields to an object, http://mongoosejs.com/docs/api.html#query…

  • Loading branch information...
1 parent 4a6f6e9 commit e3cd8a1de1d9f04a8d69781430fde2e91042666c @tblobaum committed Mar 13, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/pagination.test.js
View
2 test/pagination.test.js
@@ -98,7 +98,7 @@ describe('Pagination', function () {
FooSchema.plugin(pagination, {
defaultLimit: 20
, defaultQuery: { count: { $gt: 10 } }
- , defaultFields: ['count']
+ , defaultFields: { count : 1 }
, remember: true
})
var BarModel = db.model('paginateBar', FooSchema)

0 comments on commit e3cd8a1

Please sign in to comment.