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
Query on populate field #168
Comments
@necm1 You can try https://www.npmjs.com/package/mongoose-aggregate-paginate-v2 which might be good in your case. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I tried multiple times to query my populate field to get entries of a specific user. Actually, I don't really know how to do this.
I tried to use the
match
object but it gives menull
as the result including multiple entries not belonging to the user:That's the result I get (one entry of multiple entries which doesn't match the user id):
Is there any way to perform a
WHERE
-Condition in populate to get only entries of a specific user?The text was updated successfully, but these errors were encountered: