Can anyone tell how do I build an emberfire with emberjs 2 query like this SQL query: SELECT * FROM my_db WHERE name=“some_name”;
DB in question: https://shoutoutdb.firebaseio.com/users
I’ve tried a lot of things, but nothing really worked, and I didn’t find a clear solution for ember 2.
return this.get('store').query('model',{
orderBy : 'coulmnName',
equalTo : 'some_name});
here is an Ember addon for querying a firebase search. It supports equalTo as well as greaterThan, LessThan, notEqual, etc. You can also use multiple queries in the same search. Check it out here:
https://github.com/tomheatwole/ember-emberfire-find-query
1 Like