-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
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
Add paginate on subdocuments list #174
Comments
@lau1944 You can try this. |
I took a look but I don't think aggregation can be used in my use case. Maybe we can add a way to paginate sub-docs ? |
@lau1944 Yes its good to add as an option. You are welcome to contribute if you are willing. |
How about I add a second method, let say paginateSubDocs, if user want to paginate only sub-documents, they can add this function to their schema. And this function only support |
@lau1944 Excellent. Let's start with this. |
Thanks! I am working on it, will pr in a few days >< |
@aravindnc would you like to take a look #175 |
feat: add sub-document pagination (feats: #174)
feat: remove defaultOptions in subdoc pagination process #174
I want to add pagination features to sub-docs list
for instance
We have a user model which contains followers
Now, when we need to fetch the followers of a user
But here I want to paginate the followers list, but I cannot use the api from this library to achieve this.
Instead I need to
That adds some extra code...
Is there any way to do that in this library ?
If not, I am here to submit a feature request. If you need any help, I am eager to contribute.
The text was updated successfully, but these errors were encountered: