public
Created

  • Download Gist
gistfile1.txt
1 2 3 4 5 6
> 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 }

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.