Skip to content

Instantly share code, notes, and snippets.

@PoplarYang
Last active March 25, 2019 10:41
Show Gist options
  • Save PoplarYang/796822f090b60cc3e52e3d1093786679 to your computer and use it in GitHub Desktop.
Save PoplarYang/796822f090b60cc3e52e3d1093786679 to your computer and use it in GitHub Desktop.
db.collection.update(
<query>,
<update>,
{
upsert: <boolean>,
multi: <boolean>,
writeConcern: <document>,
collation: <document>,
arrayFilters: [ <filterdocument1>, ... ]
}
)
db.collection.remove(
<query>,
<justOne>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment