mardi 30 août 2016

Ember.js - filtering queries isn't working

I'm building an Ember app and I'm trying to query some data from my database with a filter on it:

this.store.query('game', {filter: {season: season}}).then(function(games) { 
  controller.set('gameList', games); 
}); 

However, this is returning every single game object in the database instead of correctly filtering by season. I think I followed the documentation correctly... are there any obvious mistakes I could have made?

Here's the file: admin.js




Aucun commentaire:

Enregistrer un commentaire