Skip to content Skip to sidebar Skip to footer

Does Emberfire 1.3.2 Implement FindQuery Method?

When I tried to load articles by simply calling this.store.find('article', { typeId: model.get('typeId') }), I get: Error while processing route: article Assertion Failed: You trie

Solution 1:

It does not yet. I asked this very question a week or so ago on GitHub.

However, GitHub user @tstirrat has a fully functional although untested implementation. If you use the code in his PR https://github.com/firebase/emberfire/pull/169 then you can implement a workaround while the final code is debated.

Syntax is closer to native Firebase JS but I actually think that is a plus.

Brendan


Solution 2:

This is the add-on that you can use as a workaround until EmberFire fixes the problem. The filterCustom method will allow you to perform pretty much any type of query that you could want.


Post a Comment for "Does Emberfire 1.3.2 Implement FindQuery Method?"