-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
aggregate with skip can't work #2078
Comments
I resolved this to make .skip(skip)
.limit(limit) |
It's because if you limit first you can't skip after, if skip > limit you end up out of the limit results so no data. |
@mypawdesign is right. In aggregate, |
@mani95lisa Thanks for the trick . and @vkarpov15 , you are right . Seems like expected behavior in mongodb . |
Hi @mani95lisa |
@mani95lisa thanks dear, it's working now |
Hi, guys, please help me out, thank you very much!
Schema
Aggregate when
skip=0
works fine, but whenskip!=0
, I got nothing. I'm sure there're pages data.The text was updated successfully, but these errors were encountered: