File uploads, mostly. Also added extra behavior to addCharacter.
the build was successful

This commit is contained in:
2019-08-31 22:46:55 +02:00
parent 8a313b3bb2
commit c8ced52e1a
17 changed files with 175 additions and 25 deletions
+7 -1
View File
@@ -107,7 +107,7 @@ type Mutation {
"Edit a comment in a chapter."
editComment(input: CommentEditInput!): Comment!
"Remove a comemnt in a chapter."
"Remove a comment in a chapter."
removeComment(input: CommentRemoveInput!): Comment!
@@ -164,6 +164,10 @@ type Mutation {
# Edit a channel
editChannel(input: ChannelEditInput!): Channel!
"Upload a file"
uploadFile(input: FileUploadInput): File!
}
type Subscription {
@@ -176,3 +180,5 @@ type Subscription {
# A Time represents a RFC3339 encoded date with up to millisecond precision.
scalar Time
"""A GraphQL file upload."""
scalar Upload
+2
View File
@@ -64,6 +64,8 @@ enum ChangeModel {
Story
Tag
Chapter
Comment
File
}
"""
+13 -1
View File
@@ -38,9 +38,21 @@ input FilesFilter {
mimeTypes: [String!]
}
# Input for uploadFile mutation
input FileUploadInput {
"The file name"
name: String!
# Whether the file should be public
public: Boolean!
# The actual file upload
file: Upload!
}
# Input for editFile mutation
input EditFileInput {
# The file's unique ID
# The file's unique ID
id: String!
# Whether the file is publicly listable. Someone with knowledge of the ID