Fix a problem in PostMutations.js which came in through merging the master

This commit is contained in:
Wolfgang Huß 2019-06-14 20:25:25 +02:00
parent 68dcbacaff
commit 23185fa29e

View File

@ -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