How to get content for a page/category/startpage
page, category and startpage uses the same graph to fetch content. So, in order to fetch a page instead of startpage, just switch the word startPage to page.
An important point here is that the content field fetches content from old admin, whilst data fetches from new admin.
startpage-inputstartpage-querystartpage-output
{
"id": 44
}query GetStartPageContent($id: Int){
startPage(id: $id) {
data {
id
items {
children {
properties {
name
valueType
type
value{__typename}
}
}
}
}
content
}
}{
"data": {
"startPage": {
"data": {
"id": "9e2343d2-77d6-44c3-a314-1b95324696ce",
"items": [
{
"children": []
},
{
"children": [
{
"properties": [
{
"name": "category",
"valueType": "OBJECT",
"type": "category",
"value": {
"__typename": "Category"
}
},
{
"name": "categoryImage",
"valueType": "SCALAR",
"type": "image",
"value": {
"__typename": "StringValue"
}
}
]
},
{
"properties": [
{
"name": "category",
"valueType": "OBJECT",
"type": "category",
"value": {
"__typename": "Category"
}
},
{
"name": "categoryImage",
"valueType": "SCALAR",
"type": "image",
"value": {
"__typename": "StringValue"
}
}
]
},
{
"properties": [
{
"name": "category",
"valueType": "OBJECT",
"type": "category",
"value": {
"__typename": "Category"
}
},
{
"name": "categoryImage",
"valueType": "SCALAR",
"type": "image",
"value": {
"__typename": "StringValue"
}
}
]
},
{
"properties": [
{
"name": "category",
"valueType": "OBJECT",
"type": "category",
"value": {
"__typename": "Category"
}
},
{
"name": "categoryImage",
"valueType": "SCALAR",
"type": "image",
"value": {
"__typename": "StringValue"
}
}
]
},
{
"properties": [
{
"name": "category",
"valueType": "OBJECT",
"type": "category",
"value": {
"__typename": "Category"
}
},
{
"name": "categoryImage",
"valueType": "SCALAR",
"type": "image",
"value": {
"__typename": "StringValue"
}
}
]
}
]
},
{
"children": []
},
{
"children": []
},
{
"children": []
}
]
},
"content": ""
}
}
}