7 lines
211 B
JavaScript
7 lines
211 B
JavaScript
|
function addStandaloneWithDefaultValue() {
|
||
|
/* Set standalone by default true */
|
||
|
db.stakeholder.updateMany({standalone: {$exists: false}}, {$set: {standalone: true}});
|
||
|
}
|
||
|
|
||
|
addStandaloneWithDefaultValue();
|