graph2: Added Chapter mutations
the build failed

This commit is contained in:
2018-09-17 20:11:57 +02:00
parent c3a6798050
commit a4034b0faa
10 changed files with 201 additions and 0 deletions
+12
View File
@@ -1,5 +1,6 @@
schema {
query: Query
mutation: Mutation
}
type Query {
@@ -57,6 +58,17 @@ type Query {
token: Token!
}
type Mutation {
# Add a chapter to a story
addChapter(input: ChapterAddInput!): Chapter!
# Edit a chapter
editChapter(input: ChapterEditInput!): Chapter!
# Remove a chapter
removeChapter(input: ChapterRemoveInput!): Chapter!
}
# A Date represents a RFC3339 encoded date with up to millisecond precision.
scalar Date
+6
View File
@@ -56,4 +56,10 @@ input ChapterEditInput {
# Set the fictional date for a chapter
fictionalDate: Date
}
# Input for removeChapter mutation
input ChapterRemoveInput {
# The chapter to remove
id: String!
}