Created
March 26, 2014 19:12
-
-
Save wytten/9790969 to your computer and use it in GitHub Desktop.
MongoDB update all
This file contains hidden or 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.scores.update({}, {$set:{score:77}}, {multi:true}); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Point being that only 1 record will be updated if you omit the multi:true option