Skip to content

Instantly share code, notes, and snippets.

@wichopy
Created February 25, 2017 15:10
Show Gist options
  • Save wichopy/22bdbc53410315ee7593957b203680d9 to your computer and use it in GitHub Desktop.
Save wichopy/22bdbc53410315ee7593957b203680d9 to your computer and use it in GitHub Desktop.
Mongo command to find and update multiple documents..
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