In Ember docs, I found that find () supports searching by id:
this.store.find('post', 1);
And also by passing arbitrary parameters:
this.store.find('post', { name: "Peter" }); // => GET to /posts?name='Peter'
But in my case, I have to find by id and pass an additional parameter to request all fields that will be included in the response (some are omitted by default), for example:
this.store.find('post', 1);
I tried to do it as follows:
this.get('store').find('post', params.post_id, { include : 'all' });
But my options were ignored.
This seems like a pretty basic option, so I have to skip something ...
How can i do this?
Edy bourne
source share