Skip to content

Instantly share code, notes, and snippets.

@sasha-id
Created August 9, 2012 19:20
Show Gist options
  • Save sasha-id/3307303 to your computer and use it in GitHub Desktop.
Save sasha-id/3307303 to your computer and use it in GitHub Desktop.
How to update multiple documents with a single command
db.test.update({foo: "bar"}, {$set: {test: "success!"}}, false, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment