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
And I want to map everything to observables as default except for id properties. I would think that the following custom would work
{
copy: ['id']
toys: {copy: ['id']}}
but it doesn't because the custom toys mapping seems to apply to the entire array, not each item. The only way I've found of applying this to the child items is to tear out how the object is constructed entirely
This is pretty anti-intuitive and is almost more code than mapping things manually! In fact, if there's properties for schoolSupplies, friends, bullies, now I'm writing layers of abstraction just to generate the mapping.
Am I missing something? If not, then I think it makes a lot more sense for properties like copy or ignore on arrays to apply to the elements rather than the array itself.
The text was updated successfully, but these errors were encountered:
Maybe I'm not getting something but say I have this json:
And I want to map everything to observables as default except for id properties. I would think that the following custom would work
but it doesn't because the custom toys mapping seems to apply to the entire array, not each item. The only way I've found of applying this to the child items is to tear out how the object is constructed entirely
This is pretty anti-intuitive and is almost more code than mapping things manually! In fact, if there's properties for
schoolSupplies
,friends
,bullies
, now I'm writing layers of abstraction just to generate the mapping.Am I missing something? If not, then I think it makes a lot more sense for properties like
copy
orignore
on arrays to apply to the elements rather than the array itself.The text was updated successfully, but these errors were encountered: