Hi, I’m querying multiple endpoints which each are returning part of a model.'s data :
model: function() {
const id = this.paramsFor('users.user').id;
const promises = {
a: this.get('store').queryRecord('mymodel', {
id: id,
endpoint: 'a'
}),
b: this.get('store').queryRecord('mymodel', {
id: id,
endpoint: 'b'
})
};
return hash(promises);
},
Is there a way of getting a model which concats the data of all the endpoints instead of having to deal the “alias” of each query like :
this.model.a.xxxx
Note : I’m using ember 3.14 Note 2 : I’m quite new to the ember world , so maybe i asking something that shouldn’t be done
Thanks 
3 posts - 2 participants