Skip to content

Instantly share code, notes, and snippets.

@danared
Created December 23, 2015 15:59
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 danared/b68f2d7ec79df8e64891 to your computer and use it in GitHub Desktop.
Save danared/b68f2d7ec79df8e64891 to your computer and use it in GitHub Desktop.
> db.test.find()
{ "_id" : { "a" : 1234, "b" : 5678 } }
> db.test.find( { _id : { b : 5678, a : 1234 } } ) <- No Match! Wuh?
> db.test.find( { _id : { a : 1234, b : 5678 } } ) <- But this does? What"s the diff?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment