Skip to content

Instantly share code, notes, and snippets.

@cheald
Created January 4, 2013 22:25
Show Gist options
  • Save cheald/4457967 to your computer and use it in GitHub Desktop.
Save cheald/4457967 to your computer and use it in GitHub Desktop.
> db.test.insert({'foo': 'bar'})
> db.test.find()
{ "_id" : ObjectId("50e756d52756f7c12acbfb30"), "foo" : "bar" }
> db.test.update({ "_id" : ObjectId("50e756d52756f7c12acbfb30")}, {})
> db.test.find()
{ "_id" : ObjectId("50e756d52756f7c12acbfb30") }
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment