tblobaum / mongoose-troop

plugins for your mongoose schemas.
MIT License
242 stars 29 forks source link

Pagination sort and population support. #30

Closed janez89 closed 11 years ago

janez89 commented 11 years ago
medanat commented 11 years ago

+1

janez89 commented 11 years ago

I have created a fork named as mongoose-utilities. https://npmjs.org/package/mongoose-utilities The pagination and Rest plugins changed. obfuscate plugin removed.

Ideas and suggestions are welcome.

tblobaum commented 11 years ago

This pull request was never merged because the pagination plugin should actually be far more simple and return an instance of cursor

janez89 commented 11 years ago

Cursor? The cursor returned after run find method. Yes and more complex if i need sort or population functionality.

https://github.com/tblobaum/mongoose-troop/blob/master/lib/pagination.js#L42