如何$in
正确使用 in $ref
?
cursor = db.MyCollection.find({
"player": {
"$ref": "Contact",
"$id": {
$in: [ObjectId("556d901118bfd4901e2a3833"), ObjectId("556d901118bfd4901e2a3833")]
} ^ it executes successfully, but does not find anything
}
})
甚至可以在$in
内部使用$ref
吗?