0

我正在尝试从数组中的嵌入文档中检索可以满足此查询中所有条件的文档。它正在检索满足任何条件的文档。

db.getCollection('CollectionName').find(
    { $and: [{ "users.type" : "user" },
       { "users.status" : "2"},
       {"users.userId" : ObjectId("Some Object Id")} ]}
4

0 回答 0