The process of writing for the criteria below.
I have some collections in which objects, arrays, and nested arrays and not all are the same:
{first name: "something", last name: "thing", Nickname: {address1: "i234 some road", address line 2: empty, city: "city", phone: {landline: 1234556778, function: blank, mobile: 832923891}}}}
How can I write a recovery process, even if a blank space is found, the values and updates are "unavailable"
You can ask the following question You can use and it can run with multiple correct options.
db.collection.update ({nickname}, {$ set: {alias: "missing"}}, {multi: true})
< P>
No comments:
Post a Comment