graph2, models: Added editComment mutation.

This commit is contained in:
2019-01-16 21:45:00 +01:00
parent 1eefa65527
commit 0e2a68a2d4
4 changed files with 117 additions and 1 deletions
+3
View File
@@ -104,6 +104,9 @@ type Mutation {
"Add a comment to a chapter."
addComment(input: CommentAddInput!): Comment!
"Edit a comment in a chapter."
editComment(input: CommentEditInput!): Comment!
# Add a new log
addLog(input: LogAddInput!): Log!
+26
View File
@@ -51,4 +51,30 @@ input CommentAddInput {
"Optional subject to add to the comment, only shown in some modes."
subject: String
}
"""
Input for the editComment mutation
"""
input CommentEditInput {
"What comment to edit."
commentId: String!
"Change the markdown source."
source: String
"Change the name of the character associated with this comment."
characterName: String
"Change the character assocaited with this comment."
characterId: String
"Change the optional in-universe date of the comment."
fictionalDate: Date
"Set to clear the fictional date."
clearFictionalDate: Boolean
"Change the optional subject for the comment, only shown in some modes."
subject: String
}