Created
November 4, 2019 13:09
-
-
Save aadshalshihry/af95910458be838fc3eb434aaa2a69f3 to your computer and use it in GitHub Desktop.
To update field manually in monog
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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