#import "../fragments/contentBlockInterfaceParts.gql"
#import "../fragments/contentBlockParts.gql"

mutation AddContentBlock($input: AddContentBlockInput!) {
  addContentBlock(input: $input) {
    newContentBlock {
      ...ContentBlockParts
      ...ContentBlockInterfaceParts
    }
    errors
    clientMutationId
  }
}


# input

#{
#  "input": {
#    "contentBlock": {
#     "title": "Hello World", "contents": [
#      {
#        "type": "text_block",
#        "text": "<p>let's get <b>wild</b><script>alert(1)</script></p>"
#      }
#     ]
#    },
#  "parent": "Q2hhcHRlck5vZGU6MTg="
#  }
#}
