# Get nested references with js sdk

**URL:** <https://forum.builder.io/t/get-nested-references-with-js-sdk/2228>\
**Category:** Technical Questions\
**Tags:** faq\
**Created:** [June 1, 2022, 9:22pm UTC](https://forum.builder.io/t/get-nested-references-with-js-sdk/2228 "2022-06-01T21:22:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![krzysztof](https://avatars.discourse-cdn.com/v4/letter/k/ed655f/32.png) [@krzysztof](https://forum.builder.io/u/krzysztof)\
**Post date:** [June 1, 2022, 9:22pm UTC](https://forum.builder.io/t/get-nested-references-with-js-sdk/2228/1 "2022-06-01T21:22:22Z")

</div>

Hi there!

I’m trying to reach the second nested level with one request through the .get function. My use case: I have a page model, which has a reference to data model A, and data model A has a reference to data model B.

With the current behavior, I’m fetching page content, and I can reach the first nested level (model A), but in the second level, I can only reach builder ids, which requires me to use another fetch for model B separately.

Is there any way to reach this level through SDK?

Thanks,  
Krzysztof

---

<div class="post-metadata">

**Author:** ![ancheetah](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.builder.io/ancheetah/32/751_2.png) [@ancheetah](https://forum.builder.io/u/ancheetah)\
**Post date:** [June 2, 2022, 5:45pm UTC](https://forum.builder.io/t/get-nested-references-with-js-sdk/2228/2 "2022-06-02T17:45:42Z")

</div>

Hey @krzysztof, 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.
