Skip to content

Instantly share code, notes, and snippets.

@mitsuhiko
Created May 4, 2012 13:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mitsuhiko/2594843 to your computer and use it in GitHub Desktop.
Save mitsuhiko/2594843 to your computer and use it in GitHub Desktop.
In-Band Signalling WTF
# This does nothing
collection.find_and_modify({'_id': 'deadbeef'}, {$set: {}})
# This clears a document
collection.find_and_modify({'_id': 'deadbeef'}, {})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment