janmonschke / backbone-couchdb

A couchdb connector for backbone with support for real time changes.

Home Page:http://janmonschke.com/projects/backbone-couchdb.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Need a way to get a single model by a non-ID attrib

locohost opened this issue · comments

Great app BTW. It's working really well for me other than the fact that there is no way to pull a single model by an attrib that is not the ID.

I think I can work around this by creating a collection with a custom couch view that pulls just one model. But, this seems really hacktastic.

Am I missing the existing way to force model.fetch() to retrieve the model by a non-ID attrib?