graph2: Added post mutations. general: Did some cleaning.
the build failed

This commit is contained in:
2018-09-29 15:54:22 +02:00
parent 815f30597e
commit bb28795cd5
14 changed files with 287 additions and 364 deletions
+13
View File
@@ -83,6 +83,19 @@ type Mutation {
# Remove a chapter
removeChapter(input: ChapterRemoveInput!): Chapter!
# Add a post
addPost(input: PostAddInput!): Post!
# Edit a post
editPost(input: PostEditInput!): Post!
# Move a post. All affected posts will be returned.
movePost(input: PostMoveInput!): [Post!]!
# Remove a post
removePost(input: PostRemoveInput!): Post!
}
# A Date represents a RFC3339 encoded date with up to millisecond precision.
+9 -3
View File
@@ -23,7 +23,7 @@ type Post {
}
# Input for the addPost mutation
input AddPostInput {
input PostAddInput {
# The log's ID that this post should be a part of
logId: String!
@@ -41,7 +41,7 @@ input AddPostInput {
}
# Input for the editPost mutation
input EditPostInput {
input PostEditInput {
# The Post ID
id: String!
@@ -59,7 +59,7 @@ input EditPostInput {
}
# Input for the movePost mutation
input MovePostInput {
input PostMoveInput {
# The Post ID
id: String!
@@ -67,6 +67,12 @@ input MovePostInput {
toPosition: Int!
}
# Input for the removePost mutation
input PostRemoveInput {
# The Post ID
id: String!
}
# Filter for posts query
input PostsFilter {
id: [String!]