fotonauts/MongoHub-Mac — Issue #6: Parse unquoted hex query as ObjectId
Author: yozlet
Created: 2011-10-23 18:13:15+00:00
State: open

A suggestion that would be so useful to me:
A lot of the time I'm looking up objects by their BSON/Mongo-generated ObjectId. At present, in order to look them up, I have to write my query like this:

```{"_id": {"$oid":"4E9321AF3768CF514A00000C"} }

The current behaviour of taking a quoted string and assuming it's an ID lookup is *really* close to what I need, but not quite, since it doesn't convert to ObjectId type. Also, it demands that I quote the string; if it were to scan the string first and see that it's pure hex, maybe that would be a shortcut.

This is just a suggestion as I've no idea how many other Mongo DBs are using ObjectId values for their IDs. Thanks for all your work on this!