YAM*_*YAM 3 arrays mongodb mongodb-query
我有一个包含以下文档的集合:
"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."
}
Run Code Online (Sandbox Code Playgroud)
我们在find()命令中使用什么查询文件来返回my_collection集合中所有获得或被提名以获得最佳图片的电影?