-1
我在awards
字段被定义为一个文件如下:关于MongoDB的查询
"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."
}
我想查询文件将我们的发现()命令用于返回所有的电影在此集合,要么韩元或被提名为最佳图片? 基本上我想计算'奥斯卡'阵列内'奖'等于'bestPicture'的地方。
谢谢。得到它了。 –