bobthecow / genghis

The single-file MongoDB admin app
http://genghisapp.com
MIT License
1.45k stars 166 forks source link

Feature request - allow non ObjectId search #179

Closed cyberwombat closed 10 years ago

cyberwombat commented 10 years ago

Right now the search field assumes ObjectId indexes - but it's possible to use uuids or other. I personally use Buffer with uuid as my _id. Would be nice to search by that.

bobthecow commented 10 years ago

You can search by anything, but the only one that automatically converts to a query is ObjectId. To search by anything else, use a normal MongoDB query object:

{_id: "Whot!"}
cyberwombat commented 10 years ago

Lol I had no idea you could search by other things! sweet