📌  相关文章
📜  mongoose 数组包含 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:34.083000             🧑  作者: Mango

代码示例2
// As favouriteFoods is a simple array of strings, 
// you can just query that field directly:

// favouriteFoods contains "sushi"
PersonModel.find({ favouriteFoods: "sushi" }, ...);