find the document from sub array?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a collection with documents that look like this: "awards" : { "oscars" : [ {"award": "bestAnimatedFeature", "result": "won"}, {"award": "bestMusic", "result": "won"}, {"award": "bestPicture", "result": "nominated"}, {"award": "bestSoundEditing", "result": "nominated"}, {"award": "bestScreenplay", "result": "nominated"} ], "wins" : 56, "nominations" : 86, "text" : "Won 2 Oscars. Another 56 wins and 86 nominations." } What query document would we use in a find() command to return all movies in the my_collection collection that either