From 5dec3d06c93c887c9932aef7e540046cf93cda2a Mon Sep 17 00:00:00 2001 From: Ramon Wenger Date: Fri, 7 Sep 2018 21:25:22 +0200 Subject: [PATCH] Add example add content block query --- .../graphql/gql/mutations/addContentBlock.gql | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 client/src/graphql/gql/mutations/addContentBlock.gql diff --git a/client/src/graphql/gql/mutations/addContentBlock.gql b/client/src/graphql/gql/mutations/addContentBlock.gql new file mode 100644 index 00000000..c9275373 --- /dev/null +++ b/client/src/graphql/gql/mutations/addContentBlock.gql @@ -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": "

let's get wild

" +# } +# ] +# } +# } +#}