jeudi 30 mars 2017

in query in Ember JS DS.store model

I have tried below both queries :

    this.store.query('estimate', { 'vendorUids' : supplierData.getEach('vendorUid') } ).then((estimatesData)=>{

});

this.store.query('estimate', { filter : { 'vendorUids' : supplierData.getEach('vendorUid') } }).then((estimatesData)=>{

});

But it is creating query as below :

https://localhost:8080/v1/estimates?vendorUids[]=344&vendorUids[]=5&vendorUids[]=1&vendorUids[]=2&vendorUids[]=3&vendorUids[]=4

I want query to be generated as below like in query :

https://localhost:8080/v1/estimates?vendorUids=[1,2,3,4,5]

Thanks in Advance.




Aucun commentaire:

Enregistrer un commentaire