Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
db.service_instances.find().forEach(function(instance) {
instance.teamowner = instance.teams[0];
db.service_instances.save(instance);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment