mongoosemodelfind can be used on schemas with a schematypesmixed property

You can use dot notation for querying embedded documents

postModel.find({
  "postDetails.type": "Cages"
});

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top