How to query documents with nested subdocuments by filtering them against an array of fields

Basically, I have a collection where documents have nested objects, and I want to query documents which have certain fields, and certain subdocuments, by using an array of fields.

Hi @Project_PlaDat,

Welcome to MongoDB community!

I believe you could use the $all or $any operators with $elemMatch:

Please let me know if that helps
Thanks
Pavel