Querying for nested content relationships in the API

I have a document that has a content relationship with another document, and in that second document there is another relationship to a third document.

Is there a way for me to query for the first parent document in the API and receive all data for the two nested documents? Or do I need to recursively query the API 3 times using the ID for these nested documents in the response?

Would be great if we could just do one API call for the first document and receive all the data that it contains, including those that it has a content relationship to.

I am using the JavaScript Prismic API.

Hi Ryan,

Thanks for reaching out.

In fact, currently, the feature has been deployed for some of the repositories to support two levels of nested content relationship docs.

Can you share your repository name with us (in a private message if necessary) to check if you already have the feature?

Looking forward to your reply,
Fares

This thread has been closed due to inactivity. Flag to reopen.