While exploring the Ember documentation, I learned that the find() method supports finding by id:
this.store.find('post', 1); // => GET /posts/1
It also allows for searching with arbitrary parameters:
this.store.find('post', { name: "Peter" }); // => GET to /posts?name='Peter'
However, in my specific scenario, I need to search by id and include all fields in the response (some are normally omitted by default), like this:
this.store.find('post', 1); // => GET /posts/1?include=all
I attempted to achieve this using the following code:
this.get('store').find('post', params.post_id, { include : 'all' });
Unfortunately, my additional parameter was not recognized.
Since this seems like a fundamental use case, I must be overlooking something...
How can I successfully accomplish this task?