emberjs/data — Issue #97: store.findOne ?
Author: garth
Created: 2012-02-15 16:09:26+00:00
State: open

Was looking for a way to fetch a model when you don't yet know the id. For example `/people/current-user` instead of `/people/99', or to fetch items that don't have an id such as `/session-info`.

`store.findMany` will return an array, but I want to get a single model object that can I can pass to a view.

Tried `/people/0' that returns a person with the real id, but then the system won't match up because then id's don't match.

Perhaps it might possible to create an item with a `clientId` then match that up with the ajax response and wrap it up in a `store.findOne` method?