Create a gist now

Instantly share code, notes, and snippets.

> db.test.insert({a:1})
> db.test.find()
{ "_id" : ObjectId("4f9b9a90b59b4d1158a2d42d"), "a" : 1 }
> db.test.insert({b:1})
> db.test.find({_id: {$in: [ObjectId("4f9b9a90b59b4d1158a2d42d")]}})
{ "_id" : ObjectId("4f9b9a90b59b4d1158a2d42d"), "a" : 1 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment