Skip to content
Discussion options

You must be logged in to vote

Your original reading matches the docs, but the current implementation does not propagate that top-level depth. BaseSerializer calls the root resource with maxDepth = -1 (source), and Item.resolve converts that override to undefined (source); the first nested transformer therefore falls back to its own default depth of 1. That explains both the one-level output and why putting .depth(4) on the nested Clinic.Transformer.transform(...) fixes it, so that is the practical workaround until the docs or implementation are corrected.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@Shayan-To
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Shayan-To
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants