# Issue fetching all text using fetchLinks

**URL:** <https://community.prismic.io/t/issue-fetching-all-text-using-fetchlinks/12353>\
**Category:** Developing with Prismic\
**Tags:** javascript\
**Created:** [February 5, 2023, 12:36am UTC](https://community.prismic.io/t/issue-fetching-all-text-using-fetchlinks/12353 "2023-02-05T00:36:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick.dueber](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nick.dueber](https://community.prismic.io/u/nick.dueber)\
**Post date:** [February 5, 2023, 12:36am UTC](https://community.prismic.io/t/issue-fetching-all-text-using-fetchlinks/12353/1 "2023-02-05T00:36:51Z")

</div>

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?

```auto
await Client().getByUID("post", slug, {
 fetchLinks: [
   "product.review",
      ],
})

```

---

<div class="post-metadata">

**Author:** ![nick.dueber](https://avatars.discourse-cdn.com/v4/letter/n/ec9cab/32.png) [@nick.dueber](https://community.prismic.io/u/nick.dueber)\
**Post date:** [February 5, 2023, 1:13am UTC](https://community.prismic.io/t/issue-fetching-all-text-using-fetchlinks/12353/2 "2023-02-05T01:13:16Z")

</div>

I found a work around, not using fetchLinks, but using graph query.

```auto
 graphQuery: `
        {
          post {
            products {
              product {
                review
              }
            }
          }
        }
      `,

```

This cant be the proper solution though. does fetch Links have issues with groups?

---

<div class="post-metadata">

**Author:** ![Priyanka](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/priyanka/32/3223_2.png) [@Priyanka](https://community.prismic.io/u/Priyanka)\
**Post date:** [February 6, 2023, 1:12pm UTC](https://community.prismic.io/t/issue-fetching-all-text-using-fetchlinks/12353/4 "2023-02-06T13:12:07Z")

</div>

Hello @nick.dueber

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.

Let me know if you have any further questions.

Thanks,  
Priyanka
