I am trying to fetch a rich text field in a content relationship. However I am only getting back the first item in the array. I would like to get the whole array of text back.
What can i add to my query in order to get back all of the "review" field back?
Welcome to the Prismic community, and thanks for reaching out to us.
This is true that fetchLinks can not retrieve the following fields:
Embed
GeoPoint
Link
Link to Media
Rich Text (anything other than the first element)
Any field in a Group or Slice
That's why Prismic implemented graphQuery (an advanced version of fetchLinks or fetchLinks V2) that enables you to make advanced queries. You can do selective fetching (to retrieve only specific fields) and deep fetching (to retrieve content from linked documents). That's the solution to retrieve linked documents.