uoa-monitor-service/scripts/2024-05-27.js

7 lines
211 B
JavaScript

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