graph2: Added Story mutations
the build failed

This commit is contained in:
2018-09-20 20:50:22 +02:00
parent 3c42043ab6
commit 0e0d802a32
9 changed files with 271 additions and 0 deletions
+16
View File
@@ -59,6 +59,22 @@ type Query {
}
type Mutation {
# Add a story
addStory(input: StoryAddInput!): Story!
# Add a story tag
addStoryTag(input: StoryTagAddInput!): Story!
# Remove a story tag
removeStoryTag(input: StoryTagRemoveInput!): Story!
# Edit a story
editStory(input: StoryEditInput!): Story!
# Remove a story
removeStory(input: StoryRemoveInput!): Story!
# Add a chapter to a story
addChapter(input: ChapterAddInput!): Chapter!
+9
View File
@@ -112,6 +112,9 @@ input StoryEditInput {
# Set the fictional date of the story.
fictionalDate: Date
# Clear the fictional date of the story.
clearFictionalDate: Boolean
}
# Input for the addStoryTag mutation
@@ -132,6 +135,12 @@ input StoryTagRemoveInput {
tag: TagInput!
}
# Input for the removeStory mutation
input StoryRemoveInput {
# What story to remove.
id: String!
}
# Possible values for Story.category
enum StoryCategory {
# General information