I have no issues using store.findRecord() and store.findAll() but when I try and use store.query() it always returns everything in the model, not a subset like I'm expecting.
For example, I have 100 records in my person model and when I use the example on the ember.js website in my route:
model: function() {
this.get('store').query('person', {
filter: {
name: 'Peter'
}
}).then(function(peters) {
return peters
});
}
All 100 records are returned to my template instead of only those with the name 'Peter'.
Can someone tell me what I'm doing wrong?
Thank you.
Aucun commentaire:
Enregistrer un commentaire