I have a model for all the subusers in my app. The way things work right now, I am building my json so it includes the current user, as well as every other user.
Here is how I built my json :
So you have the currentUser and then the other subusers, all in the same json payload from one server call (which is what I want). The thing I want to know is how do I load the current-user in ember-data store without having to make 2 calls (one for current user and one for the other users). I didn't define a new model for current subuser, because it has the same attributes as a normal subuser. If I do define one, it will show empty in ember inspector because it is included in the subusers payload.
Right now, I have an ember warning that says and I don't see the current-user in the store, only all the subusers from the payload (as shown here http://ift.tt/1Qn8bxO) :
Aucun commentaire:
Enregistrer un commentaire