You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yes this is GET /user and GET /user/1 return {id: 1, name: 'aaa'}. May be this is bad API pattern but I need some extra meta info for collection. For one record I don't need meta info.
Until #155 is done you would have to do the following when working with collections:
varUser=DS.defineResource('user');// cacheResponse: false, don't auto-inject items into the storeUser.findAll({ ... },{cacheResponse: false}).then(function(data){// manually inject the users into the storeUser.inject(data.list);// now you can doUser.get(1);// { id: 1, name: 'aaa' }});
Hi, my json looks like:
I don't known how to define
DS.defineResource
for this jsonThe text was updated successfully, but these errors were encountered: