-
Notifications
You must be signed in to change notification settings - Fork 174
Deep Querying components in Dynamic Zone not working correctly #290
Description
I have just starting to migrate our new website from 3.6.8 to 4. I was glad to see the beta of the plugin is finally out, However I have run into some road blocks.
We are using quite a few components in strapi and it seems as that as soon as you go deep in the structure of your query it doesn't pick up the nested component or an image for example.
See below for the query's I am trying to make, these are based off of the latest blog example gatsby starter blog
fragment Sections on STRAPI__COMPONENT_SECTIONS_HEROSTRAPI__COMPONENT_SECTIONS_NEED_OUR_HELPSTRAPI__COMPONENT_SECTIONS_RICH_TEXTUnion {
__typename
... on STRAPI__COMPONENT_SECTIONS_RICH_TEXT {
content {
data {
content
}
}
}
... on STRAPI__COMPONENT_SECTIONS_NEED_OUR_HELP {
strapi_component
breadcrumbTitle {
title
colour
colourOverride
dashColour
}
title {
text
style
colour
colourOverride
}
cards {
title {
text
style
colour
colourOverride
}
description
link {
url
text
newTab
id
}
colourOverride
gradientOverride
background {
url
ext
formats {
large {
url
}
medium {
url
}
small {
url
}
}
}
size
}
link {
url
text
newTab
id
}
backgroundColour
backgroundColourOverride
}
... on STRAPI__COMPONENT_SECTIONS_HERO {
strapi_component
description
buttons {
url
newTab
text
type
}
background {
url
ext
formats {
large {
url
}
medium {
url
}
small {
url
}
}
}
title {
text
style
colour
colourOverride
}
overlayGradient
variation
backgroundColour
linkOrder
foregroundImage {
id
url
}
}
}
All the fragment queries work except for the STRAPI__COMPONENT_SECTIONS_NEED_OUR_HELP fragment.
All the fields on this fragment are populated except for the title (component) link (component) and background (image).
I have made sure that all the data is captured in strapi so there are no null fields.
My gatsby config file looks like this
...
collectionTypes: [
{
singularName: "page",
queryParams: {
publicationState: process.env.GATSBY_IS_PREVIEW
? "preview"
: "live",
populate: {
metadata: {
populate: "*",
},
contentSections: {
populate: "*",
},
},
},
}
],
...
Is there some sort of limit to how deep you can query?