# List of references not being populated with enrich nor includeRefs GraphQl API

**URL:** <https://forum.builder.io/t/list-of-references-not-being-populated-with-enrich-nor-includerefs-graphql-api/5381>\
**Category:** Technical Questions\
**Tags:** gatsby, api, react\
**Created:** [April 16, 2024, 4:43pm UTC](https://forum.builder.io/t/list-of-references-not-being-populated-with-enrich-nor-includerefs-graphql-api/5381 "2024-04-16T16:43:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_aven](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@lucas\_aven](https://forum.builder.io/u/lucas_aven)\
**Post date:** [April 16, 2024, 4:43pm UTC](https://forum.builder.io/t/list-of-references-not-being-populated-with-enrich-nor-includerefs-graphql-api/5381/1 "2024-04-16T16:43:41Z")

</div>

**Builder content link**  
_[archive page](https://builder.io/content/a79c7c7c38e24415a3d5395874c22a16)_

**Builder public api key**  
_f127073fccdc44a590bf4362d8bb100b_

**What are you trying to accomplish**  
I’m trying to create a gatsby page based on the archive page model shown above. When I write the grapghql query to retrieve all the page content I’m not able to get the complete model respose for `blogPostCategories` and `pinnedBlogPosts` which are a list of references to some data models. I tried using `enrich: true`, `includeRefs: true` and `includesubRefs: true` without success (tried them together and separated).

**Code stack you are integrating Builder with**  
This is the query used

```auto
query Test {
  oneArchive(options: {enrich: true, includeRefs: true, includesubRefs: true}) {
    data {
      title
      documentMeta
      slug
      lede
      blogPostCategories
      pinnedBlogPosts
    }
  }
}

```

And this is always the response:

```auto
"data": {
    "oneArchive": {
      "data": {
        "title": "Inside the Trading Room",
        "documentMeta": {
          "@type": "@builder.io/core:Reference",
          "model": "document-meta",
          "id": "7b26be1ba9de42678e14d8b1998b4e0d"
        },
        "slug": "resource",
        "lede": "The latest and greatest news, articles and thoughts from the Sporttrade team.",
        "blogPostCategories": [
          {
            "blogPostCategory": {
              "@type": "@builder.io/core:Reference",
              "model": "blog-post-category",
              "id": "dfd5fff4ba0c4e54bea40af57596c921"
            }
          },
          {
            "blogPostCategory": {
              "@type": "@builder.io/core:Reference",
              "model": "blog-post-category",
              "id": "3ca6de655f65483b9ac2fbe0ebc63ef2"
            }
          }
        ],
        "pinnedBlogPosts": [
          {
            "pinnedBlogPost": {
              "@type": "@builder.io/core:Reference",
              "model": "blog-post",
              "id": "38e1c3a48ab3441bbe33a849be321e50"
            }
          },
          {
            "pinnedBlogPost": {
              "@type": "@builder.io/core:Reference",
              "model": "blog-post",
              "id": "19c3999efe02448ca9233898f22c3a1e"
            }
          }
        ]
      }
    }
  }

```

---

<div class="post-metadata">

**Author:** ![lucas\_aven](https://avatars.discourse-cdn.com/v4/letter/l/c89c15/32.png) [@lucas\_aven](https://forum.builder.io/u/lucas_aven)\
**Post date:** [April 16, 2024, 4:49pm UTC](https://forum.builder.io/t/list-of-references-not-being-populated-with-enrich-nor-includerefs-graphql-api/5381/2 "2024-04-16T16:49:39Z")

</div>

Was my bad 😅 the entries which were not being populated were indeed empty.
