forked from neomerx/json-api
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi guys,
i found a bug relating to the inclusion of related resources, when having a nested inclusion like
/api/users?include=bookings.requestedBy
The root cause is the relationships of top level resource are not parsed when there is the same resource object appeared as relation data in the previous parsed resources
this is the related code https://github.com/laravel-json-api/neomerx-json-api/blob/master/src/Parser/Parser.php#L237
the top level resource contains relationships, but because this seenBefore logic it is ignored, so its relationships have not been parsed
Could anyone help to check that ?
thanks
Metadata
Metadata
Assignees
Labels
No labels