mirror of
https://github.com/Mastermindzh/examples.git
synced 2024-11-22 08:22:05 +01:00
6 lines
152 B
JavaScript
6 lines
152 B
JavaScript
db.getCollection('myCollection').update(
|
|
{$or:[{"name":null},{"name":{$exists:false}}]},
|
|
{$set:{"name":"default, value"}},
|
|
{multi:true}
|
|
);
|