A
A
Anastasia2017-11-14 18:01:09
MongoDB
Anastasia, 2017-11-14 18:01:09

How to add an element to an object without deleting the rest of the elements?

how to add an array to the profile object so that the rest of the elements are not deleted?

{
    "_id" : "NGhp5Ad8cTvcQaWjf",
    "profile" : {
        "name" : "dsfsdf",
    }
}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question