Filtering multiple nested ObjectId's

Hi @Emile_Ibrahim , There is no problem with how you convert ObjectId. The problem is probably about how you use them throughout your document.

It is possible documents are not populated. can you give output for Product.findOne({})?

also, what is populateQuery and the result for Product.findOne({}).populate(populateQuery)?