Query related document on single document query

Hey Marco!

Thanks for posting this question. There are a few ways to do this:

  • You could you GraphQuery (which has a similar syntax to GraphQL) to fetch content from linked documents
  • You could add a forEach loop after your first query to iterate over the repeater field and query each document
  • Or — and this is what I recommend — you can add a fetchLinks option to your query to fetch the content that you need

If you'd like to use fetchLinks, there are some instructions here:

Let me know if you have any questions about fetchLinks. And, otherwise, If you'd like more info on GraphQuery or using a foreach loop, let me know :slight_smile:

Best,
Sam