I'm using Ember 2.3, EmberData 2.3.2, and EmberFire 1.6.3
In my Ember route I'm returning a firebase query that looks like this:
model() {
return this.store.query('todo', {
orderBy: 'complete',
equalTo: false
});
},
my model looks like this:
export default DS.Model.extend({
title: DS.attr('string'),
complete: DS.attr('boolean')
});
When I query EmberFire with an equalTo: true I get back the expected results returning only items that are completed. If I query with an equalTo: false, it gives me all the records.
Is there a more appropriate way to fetch all the records where complete === false?
Aucun commentaire:
Enregistrer un commentaire