summaryrefslogtreecommitdiffstats
path: root/src/services/graphql/comments.mutation.ts
blob: f52c7e9fc0b015ff69963fb3e34e8d9b3d7ad490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/**
 * Send comment mutation.
 */
export const sendCommentMutation = `mutation CreateComment(
  $author: String!
  $authorEmail: String!
  $authorUrl: String!
  $content: String!
  $parent: ID = null
  $commentOn: Int!
  $clientMutationId: String!
) {
  createComment(
    input: {
      author: $author
      authorEmail: $authorEmail
      authorUrl: $authorUrl
      content: $content
      parent: $parent
      commentOn: $commentOn
      clientMutationId: $clientMutationId
    }
  ) {
    clientMutationId
    success
    comment {
      approved
    }
  }
}`;