Ocelot-Social/webapp/graphql/CommentMutations.js
Robert Schäfer 0bc1444336 Explicitly define all comment mutations in schema
Remove `postId` as part of the to-be-saved comment type.
2019-07-02 15:11:21 +02:00

24 lines
424 B
JavaScript

import gql from 'graphql-tag'
export default () => {
return {
CreateComment: gql`
mutation($postId: ID!, $content: String!) {
CreateComment(postId: $postId, content: $content) {
id
contentExcerpt
author {
id
slug
name
avatar
}
createdAt
deleted
disabled
}
}
`,
}
}