Created
January 3, 2019 12:48
-
-
Save BenSlabbert/462b199946ad1705b9bdfbce42bd3bcb to your computer and use it in GitHub Desktop.
update many mongo set multi: true to update many records matching the selector
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.vehicles.update({}, {$set: {dateCreated: Date.now()}}, {multi:true}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment