Created
December 19, 2012 10:27
-
-
Save rupertbates/4335789 to your computer and use it in GitHub Desktop.
Add a field to all records in a Mongo collection
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.registration.update({},{$set : { "receiveNewsAlerts" : true}} , true, true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment