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
How do I map multiple entities types from a single response?
Say for instance I hit a user_with_tasks endpoint which returns me a user but all their tasks also. What would I use to map to both models. I found some code somewhere that shows I would use "dataTransformer" and then inside use
Yeah I was on the wrong track although the above assign operation is important in my context the active ingredient, to map to multiple models, is simply the relationship settings if that is setup the mapping to multiple models is automatic <3
How do I map multiple entities types from a single response?
Say for instance I hit a user_with_tasks endpoint which returns me a user but all their tasks also. What would I use to map to both models. I found some code somewhere that shows I would use "dataTransformer" and then inside use
does this look right? I might be completely misunderstanding.
The text was updated successfully, but these errors were encountered: