A
A
Anastasia2018-05-31 21:06:37
JavaScript
Anastasia, 2018-05-31 21:06:37

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

We need a request to add an element to the object so that the rest of the elements are not deleted.

{
    "_id" : "NGhp5Ad8cTvcQaWjf",
    "profile" : {
        "name" : "Вася",
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Lebedinsky, 2018-05-31
@lastees

https://docs.mongodb.com/manual/reference/operator...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question