[英]How to find matching elements from an array of objects using mongoDB query
[英]MongoDB find many objects from array, using array of matching id's
使用聚合管道,在展開后使用 $in 匹配
[
{$unwind: "groups.asana"},
{"source_id": {$in: ["id1", "id2", "id3"]}}
]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.