Created
February 25, 2017 15:10
-
-
Save wichopy/22bdbc53410315ee7593957b203680d9 to your computer and use it in GitHub Desktop.
Mongo command to find and update multiple documents..
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.tweets.updateMany({ {"likes" : null},{$set: {"likes": []}} }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment