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']
}
})
Maybe query params is the way to go?
Query parameters are optional key-value pairs that appear to the right of the ? in a URL. For example, the following URL has two query params, sort and page, with respective values ASC and 2:
http://example.com/articles?sort=ASC&page=2
Query...
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.