DEV Community

Anuj Pancholi
Anuj Pancholi

Posted on

Answer: is there any query to find documents by checking a field of a nested embedded document in mongoDb

Disclaimer: I have not used Mongoose yet, but in the comments you said that a mongodb query will also be helpful.

Based on the Mongoose schemas you have described, I mocked 10 documents for products and 3 for invoices using Mockeroo (https://mockaroo.com/). Note that the objectIds are…

Top comments (0)