# Couldn't get the reference data from the parent data

**URL:** <https://forum.builder.io/t/couldnt-get-the-reference-data-from-the-parent-data/3476>\
**Category:** General\
**Tags:** shopify, react, nextjs\
**Created:** [April 11, 2023, 8:55am UTC](https://forum.builder.io/t/couldnt-get-the-reference-data-from-the-parent-data/3476 "2023-04-11T08:55:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaesis](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@aaesis](https://forum.builder.io/u/aaesis)\
**Post date:** [April 11, 2023, 8:55am UTC](https://forum.builder.io/t/couldnt-get-the-reference-data-from-the-parent-data/3476/1 "2023-04-11T08:55:20Z")

</div>

Step to reproduce:

1. Adding component with input reference model data (model-1)
2. CMS model: model-1 and model-2
3. model-1 has field reference it to model-2

Issue: I can fetch the model data (model-1) but along the way, I couldn’t get the model-2 under model-1. It was displayed only the reference id for the model-2

output:

```auto
model-1 {
   title: "test"
   description: "test2",
   model-2 (reference): {
    referenceID: 12345,
   }
}

```

how can I get the full data of model-2?

FYI: I did add the includeRefs=true in options for both builderComponent and builder.get.

---

<div class="post-metadata">

**Author:** ![anon43891756](https://avatars.discourse-cdn.com/v4/letter/a/50afbb/32.png) [@anon43891756](https://forum.builder.io/u/anon43891756)\
**Post date:** [April 18, 2023, 1:15pm UTC](https://forum.builder.io/t/couldnt-get-the-reference-data-from-the-parent-data/3476/2 "2023-04-18T13:15:36Z")

</div>

Hi @aaesis, I Hope you’re doing well!

The `includeRefs` option will only get data for references one level deep. For a reference in a reference you can use the `id` and/or `model` returned to perform additional queries to inner references. Soon, we will have a direct option available for this, the team working on it!

Let us know if you’ve further questions!
