-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'的地方。
謝謝。得到它了。 –