Comments (4)
The mongodb-documentation says
A limit() value of 0 (i.e. .limit(0)) is equivalent to setting no limit.
It seems that this was possible with this plugin, too - until #19.
It would make sense to comply with the standard. Using the listed tricks (like setting a very large limit or disabling the complete pagination) doesn't feel good.
from mongoose-paginate-v2.
@ajmas Can you share your expected output while doing limit as infinite.
from mongoose-paginate-v2.
I suppose it would be to act as if paging was disabled.
Thinking some more yesterday, another workaround is simply to use an arbitrarily large limit.
from mongoose-paginate-v2.
@ajmas Cool. Hope that serves your purpose.
from mongoose-paginate-v2.
Related Issues (20)
- Cannot carry out a weighted text search HOT 1
- Is there a way to paginate through populated documents using the mongoose-paginate-v2? HOT 2
- More generic pagination options to avail reading all docs HOT 1
- Add paginate on subdocuments list HOT 7
- Filter with not equal operator HOT 2
- Can't match a ISODate range HOT 1
- Property 'paginateSubDocs' does not exist error when using typescipt
- customLabels: typescript HOT 2
- Populate, match and filter parent based on populate match HOT 1
- Querying a non-existing field, returns all documents, instead of returning nothing HOT 1
- Not accounting for options passed in counting documents
- How to find by subdocument HOT 3
- Update npm package to include latest changes
- Not working with mongoose 7.x HOT 11
- Filter on subdocument property HOT 2
- BUG on 1.7.2: Please verify that the package.json has a valid "main" entry HOT 12
- PaginateResult
- type PaginateDocument expects PaginateOptions as fourth argument
- Skip value must be non-negative HOT 2
- how call left join or lookup data ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose-paginate-v2.