bububa / MongoHub-Mac

MongoHub mac native version.
http://mongohub.todayclose.com
1.18k stars 314 forks source link

How to query by ObjectId type? #33

Closed Shopperhive closed 13 years ago

Shopperhive commented 13 years ago

Hi guys,

I would like to be able to query by ObjectId as this is what MongoHub is returing for _id. How to do this, something like {"_id":"4d1b4687a6d5437619000000"} is not working??

cheers, /Marcin

bububa commented 13 years ago

You should use {"_id": ObjectId("4d1b4687a6d5437619000000")}

Shopperhive commented 13 years ago

Not working like that, getting: Object value expected for key: _id, my Mongohub version is: 48

bububa commented 13 years ago

fixed in source code, the new version will be released in the next week.

Shopperhive commented 13 years ago

great, thanks