We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No description provided.
The text was updated successfully, but these errors were encountered:
Hi, I think you can achieve pagination directly in mongoose without effort right now:
await Model .find(query) .skip(pagination.skip) .limit(pagination.limit) .select(fields) .sort(sort);
Sorry, something went wrong.
@it-nalon How can you achieve total and pages directly in mongoose?
total would be either countDocuments (if the result set is small) or estimatedDocumentCount. You can calculate pages yourself.
total
countDocuments
estimatedDocumentCount
pages
No branches or pull requests
No description provided.
The text was updated successfully, but these errors were encountered: