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
When I have json:api response data with relationship of same type (e.g. parent or child - relationship with it-self) and their id's are the same, Hydrator is not capable creating those relationships.
Response example:
Page with id:15 has parent with id:14, but its not present in included because it already exists in data array.
This is the intended behaviour. The authors of the JSON:API standard wrote somewhere that the response is basically an identity map where none of the items (regardless if they are in the primary data or included) doesn't appear more than once.
@Vivenco I've just realized that you are talking about the Hydrator (and not about transformers)! Sorry for confusion, I'll have a look at the issue as soon as I have some spare time.
Hi all,
I need help with this one.
When I have
json:api
response data with relationship of same type (e.g. parent or child - relationship with it-self) and their id's are the same,Hydrator
is not capable creating those relationships.Response example:
Page with id:15 has parent with id:14, but its not present in
included
because it already exists indata
array.The text was updated successfully, but these errors were encountered: