Recursively traverse the JSON:API document to build a list of all possible relationship paths up to the specified depth, which prevents stack overflow for circular relationships. Use the result in include queries
include
A map of ApiType to Zod schemas.
The JSON:API document.
The maximum depth for recursive relationship traversal.
The prefix for nested relationship paths.
Recursively traverse the JSON:API document to build a list of all possible relationship paths up to the specified depth, which prevents stack overflow for circular relationships. Use the result in
include
queries