Would you be able to provide an example with a component?
I have a single type “home” that contains one DZ with a component that has relationship to news
All good. But each news has a component within. I have not being able to access to the component of news “Item” field in the example below.
{
home {
Home {
__typename
... on ComponentNewsNewsItems {
news_items {
id,
QuickTitle,
Item {
Title
}
}
}
}
}
}
//returns
{
"data": {
"home": {
"Home": [
{
"__typename": "ComponentNewsNewsItems",
"news_items": [
{
"id": "1",
"QuickTitle": "QuickNews",
"Item": null
}
]
}
]
}
}
And
{
newsItems {
id,
QuickTitle,
Item {
Title
}
}
}
//returns
{
"data": {
"newsItems": [
{
"id": "1",
"QuickTitle": "QuickNews",
"Item": {
"Title": "Title"
}
}
]
}
}