how to check specific data is present in array which is attribut of model mongoose code example
Example: Find document with array that contains a specific value
As favouriteFoods is a simple array of strings, you can just query that field directly:
PersonModel.find({ favouriteFoods: "sushi" }, ...);
model:
person = {
name : String,
favoriteFoods : Array
}