Skip to content

Instantly share code, notes, and snippets.

@aadshalshihry
Created November 4, 2019 13:09
Show Gist options
  • Save aadshalshihry/af95910458be838fc3eb434aaa2a69f3 to your computer and use it in GitHub Desktop.
Save aadshalshihry/af95910458be838fc3eb434aaa2a69f3 to your computer and use it in GitHub Desktop.
To update field manually in monog
db.myCollection.find().forEach(
function(e) {
e.fileName = updatedValue
db.myCollection.save(e)
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment