Graphql Sub Reference Data Retrieve

Hi, I want to get all data from builder.io to my Gatsby project through Graphql.

I am running following query
image

this blog field have reference to other models (i am only getting their schema not values)
(i.e. relatedCollection, contributor)
And getting result is:

I want to run query like this :
query LandingPageData {
ContentfulData: contentfulLandingPage {
blog {
title
overview
contributor{
name
}
}
}
}
}

Hi @mughirairfan ,

Thank you for reaching out, could you try to pass enrich: true in your options and let me know if that works ?

Yes,
This works. Thanks for the quick response.

It there any documentation about this. As the provided documentation is pretty ambiguous.

1 Like

Great to know it works!
Apologies for any confusion. Our team will soon include this information in the documentation to improve clarity.

1 Like