I am trying to get all page component details including child component details. returnChildRegionComponents parameter was set to true in components in request.
But the returned response is missing child component details. It contains only 'id' and 'title' fields. There is no difference between true and false for returnChildRegionComponents.
Is there any way to get all child component details?
query ($namespaceId: Int!, $publicationId: Int!, $pageId: Int!) {
page(namespaceId: $namespaceId, publicationId: $publicationId, pageId: $pageId) {
itemId
title
url
regions {
name
components(returnChildRegionComponents:true) {
itemId
multiMedia
... on Component {
content { ... on UntypedContent {
type
data
}
}
}
}
}
}
}
Response
{
"data": {
"page": {
"itemId": 231,
"title": "Title",
"regions": [
{
"name": "Region 1",
"components": [
{
"itemId": 178,
"multiMedia": false,
"content": {
"type": "Fields",
"data": {
"$type": "Fields",
"TemplateName": "ImageLink",
"Image": {
"$type": "Link",
"id": "tcm:2-175",
"title": "Banner"
},
"ExternalURL": "www.google.com",
"LinkTarget": "Yes"
}
}
}
]
},
{
"name": "Region 2",
"components": [
{
"itemId": 235,
"multiMedia": false,
"content": {
"type": "Fields",
"data": {
"$type": "Fields",
"TemplateName": "Region2 Template",
"titleStr": "Region 2 Title",
"events": {
"$type": "Link[]",
"$values": [
{
"id": "tcm:2-212",
"title": "Event 1"
},
{
"id": "tcm:2-220",
"title": "Event 2"
},
{
"id": "tcm:2-234",
"title": "Event 3"
}
]
}
}
}
}
]
}
]
}
}
}
returnChildRegionComponents
?