jeudi 16 juin 2016

ember js find records by multiple ids

in Ember data we have:

this.store.findQuery('book', 1);

will return in /books/1

Now I want to return a list of id such as /books/1,2,3,4

What can i do? I also try

this.store.findQuery('book','1,2,3,4');

But there are 2 problems with this:
1. it return books/1%2C2%2C3%2C4 : comma is decode to html char, so not working
2. as far as i know findQuery is only used to find single record with ids, not by multiple record http://ift.tt/260BiEh




Aucun commentaire:

Enregistrer un commentaire