aravindnc / mongoose-paginate-v2

A custom pagination library for Mongoose with customizable labels.

Home Page:https://www.npmjs.com/package/mongoose-paginate-v2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Populate, match and filter parent based on populate match

matzrm opened this issue · comments

Hello,

I apply a match to a populate query so when the record not match it the object is null (This works great).
Now I wish to not include the parent to the result if this field is null (but the field is null only after populate). (This not works)

Do you think I can achieve this?

Just checked aggregate. Thank you