Closed phortx closed 6 years ago
Ok seems like this is specification conform and I have a bug in my API: https://github.com/trailblazer/roar-jsonapi/issues/26
Nevermind ;)
Yep, it is going against the concept of jsonapi, and should not be implemented.
I'm requesting a comment from the api, which belongs to a post which belongs to a user (author).
The API response is
Then I'm accessing
comment.post.user
, but the user is undefined. When I load the post from the API and callingpost.user
, the user is available.When I make the API to include the user directly in the root
included
field, everything works.Could it be that this adapter can't handle nested
included
fields?