diff --git a/webapp/graphql/PostMutations.js b/webapp/graphql/PostMutations.js index e648e5c7b..ad629bee7 100644 --- a/webapp/graphql/PostMutations.js +++ b/webapp/graphql/PostMutations.js @@ -2,7 +2,7 @@ import gql from 'graphql-tag' export default () => { return { - CreatePost: gql(` + CreatePost: gql` mutation($title: String!, $content: String!, $language: String) { CreatePost(title: $title, content: $content, language: $language) { id @@ -13,8 +13,8 @@ export default () => { language } } - `), - UpdatePost: gql(` + `, + UpdatePost: gql` mutation($id: ID!, $title: String!, $content: String!, $language: String) { UpdatePost(id: $id, title: $title, content: $content, language: $language) { id