vt-elixir / ja_serializer

JSONAPI.org Serialization in Elixir.
Other
640 stars 148 forks source link

How to serialize included relationships? #247

Closed ravern closed 7 years ago

ravern commented 7 years ago

When the request is /posts/1/relationships/comments?include=comment.author, JSON API states that we should have all the comment data and the author data of each comment in the included object. However, if I use something like CommentView to render this, I cannot include comment data in the included object, right? If so, how do I use JaSerializer to render?

alanpeabody commented 7 years ago

JaSerializer currently does not support the /relationships patterns. I have never actually used it and at this point there are no plans to support it. Sorry!