Skip to content

Support for deeply-nested included resources? #957

Answered by sliverc
esmail asked this question in Q&A

You must be logged in to vote

Yes this is possible as per specification include needs to be defined dotted.

So for your example the include query parameter should look like this:

GET /articles/1?include=comments.author HTTP/1.1

For this to work you define included_serializers in your serializers as per documentation.

Replies: 1 comment 1 reply

You must be logged in to vote
1 reply
@esmail

Answer selected by esmail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #952 on July 06, 2021 18:46.