Skip to content

GetContentByIdWithVariables

For example, in Umbraco, our page id is 1120

We create the variable

{
"contentid":1120
}

Then the GraphQL query will be

query($contentid: Int!){
contentById(id: $contentid) {
id
name
templateId
creatorId
itemType
writerId
key
url
properties {
editorAlias
alias
value {
... on BasicPropertyValue {
value
}
... on BasicMediaPicker {
mediaItems {
url
id
}
}
... on BasicBlockListModel {
alias
}
}
}
}
}
image