Closed crissi closed 10 years ago
I will add this to the 1.0 milestone since is almost implemented, you could use:
var customerWithHistory = Customer.$new(id).$fetch({ include: 'history' });
For the same effect in the meantime
Awesome, and thx for the temporary solution
Sendt fra min iPhone
Den 13/08/2014 kl. 15.54 skrev "Ignacio Baixas" notifications@github.com:
I will add this to the 1.0 milestone since is almost implemented, you could use:
var customerWithHistory = Customer.$new(id).$fetch({ include: 'history' }); For the same effect in the meantime
— Reply to this email directly or view it on GitHub.
Sometimes I may want to recieve a customer with id 2. But also eagerload some resources onto the relation.
so it would be nice if $find(id) could take a second argument.
like $find(id, params)
so I could retrieve something like customers/2?include=history