Closed cyberwombat closed 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!"}
Lol I had no idea you could search by other things! sweet
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.