Add example add content block query

This commit is contained in:
Ramon Wenger 2018-09-07 21:25:22 +02:00
parent 4ed1cd3086
commit 5dec3d06c9
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
mutation AddContentBlock($input: AddContentBlockInput!) {
addContentBlock(input: $input) {
newContentBlock {
id
title
slug
contents
}
clientMutationId
}
}
# input
#{
# "input": {
# "contentBlock": {
# "title": "Hello World",
# "contents": [
# {
# "type": "text_block",
# "text": "<p>let's get <b>wild</b><script>alert(1)</script></p>"
# }
# ]
# }
# }
#}