How can I do a “where in” type query using ember-data


#1

How can I perform a where-in type query using ember-data?

Say I have a list of tags - how can I use the store to query the API to get all relevant records where they have one of the tags present?

Something like this:

 return this.store.find('tags', {
            name: {
                "in": ['tag1', 'tag2', 'tag3']
            }
        })

#2

Maybe query params is the way to go?

http://guides.emberjs.com/v1.10.0/routing/query-params/

Just reading it seems like this might be a possible solution for you, it looks like you want to just filter results already returned by the model, you’re not making a new query.