嵌套对象mongo的upsert

时间:2020-09-14 12:52:59

标签: mongodb

我在mongo的新手收藏中有一个这样的对象。而且我想知道mongo shell中的查询,并将整个对象传递给像这样的整个对象,以使用更新的upsert来查询很小的不同值?

{
    "settings":{
        "notification":{
            "color":{
                "background":"1111",
                "header":"12321",
                "title":"49827",
                "time":"13548",
                "body":"5748979"
            },
            "text":{
                "header":"asd",
                "title":"asd",
                "body":"asd"
            }
        }
    }

}

0 个答案:

没有答案