Hello,
I have been trying to query my DatoCmsPage model, and for some reason the sections field is not being returned.
In DatoCMS, the sections field is a modular content field from the Page model wich accepts the HeroSection block, when i execute this query in the gatsby graphql page it returns to me what i want, but when I execute it inside my page file the section field does not appear, only the title.
export const query = graphql`
query MyQuery {
page: datoCmsPage(slug: {eq: "app-url"}) {
title
sections{
__typename
... on DatoCmsHeroSection {
__typename
colorScheme
backgroundImageColorScheme
buttons {
...Button
}
text
title
}
}
}
}
}`;
Does anyone have any idea of what might be causing this? Is this query wrong?
Thank you in advance