backbone-couchdb icon indicating copy to clipboard operation
backbone-couchdb copied to clipboard

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

Open locohost opened this issue 11 years ago • 0 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?

locohost avatar Oct 18 '13 14:10 locohost