尝试在 mongo 集合中查询属于我的对象(查询)子集的文档。例如
object:
{
"animal": "cat"
,"owner": "mike"
,"color": "blue"
,"city": "houston"
}
collection:
[
[0]{
"color": "red"
,"animal": "cat"
}
[1]{
"color": "blue"
}
[2]{
"owner": "mike"
,"city": "houston"
}
]
result:
[1]{
"color": "blue"
}
[2]{
"owner": "mike"
,"city": "houston"
}