通过数组的未知索引查找文档

时间:2016-05-04 14:02:02

标签: node.js mongodb express

这是mongoDB文档,我无法通过"Fields"

的特定索引值查找文档
    {
    "_id" : ObjectId("5726f5e8516876b3a4f65d9b"),
    "Title" : "The Art of Problem Posing",
    "titleurl" : "the_art_of_problem_posing",
    "attrs" : {
        "Publisher" : "Psychology Press; 3 edition (December 9, 2004)",
        "Author" : "Stephen I. Brown"
    },
    "authurl" : "stephen_i_brown",
    "Rating" : 1,
    "Reviews" : [
        {
            "reviewer" : "Orion",
            "review" : "cbv",
            "time" : "Tue May 03 2016 14:39:17 GMT+0600 (BDT)",
            "_id" : ObjectId("572863b52d72f3947606bcce")
        }
    ],
    "Links" : [
        {
            "url" : "https://www.google.com",
            "provider" : "Orion",
            "description" : "gg",
            "_id" : ObjectId("572863a92d72f3947606bccd")
        }
    ],
    "authurls" : [ ],
    "Subfields" : [ ],
    "Fields" : [
        "Study & Teaching",
        "Mathematics"
    ],
    "__v" : 0
}

如何在"Mathematics"

中找到所有"Fields"的文档

0 个答案:

没有答案