23 lines
352 B
GraphQL
23 lines
352 B
GraphQL
|
type Mutation {
|
||
|
addPost(input: PostInput!): AddResult!
|
||
|
addComment(input: CommentInput!): AddResult!
|
||
|
}
|
||
|
|
||
|
input PostInput {
|
||
|
title: String!
|
||
|
author: String!
|
||
|
contents: String!
|
||
|
allowComments: Boolean! = true
|
||
|
}
|
||
|
|
||
|
input CommentInput {
|
||
|
parentPostId: ID
|
||
|
parentCommentId: ID
|
||
|
author: String!
|
||
|
contents: String!
|
||
|
}
|
||
|
|
||
|
type AddResult {
|
||
|
itemId: ID!
|
||
|
}
|