mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
GraphQL Review and Responses
This commit is contained in:
+18
-2
@@ -476,6 +476,22 @@ type DeleteActionResponse implements Response {
|
||||
errors: [UserError]
|
||||
}
|
||||
|
||||
# SetUserStatusResponse is the response returned with possibly some errors
|
||||
# relating to the delete action attempt.
|
||||
type SetUserStatusResponse implements Response {
|
||||
|
||||
# An array of errors relating to the mutation that occured.
|
||||
errors: [UserError]
|
||||
}
|
||||
|
||||
# SetCommentStatusResponse is the response returned with possibly some errors
|
||||
# relating to the delete action attempt.
|
||||
type SetCommentStatusResponse implements Response {
|
||||
|
||||
# An array of errors relating to the mutation that occured.
|
||||
errors: [UserError]
|
||||
}
|
||||
|
||||
# All mutations for the application are defined on this object.
|
||||
type RootMutation {
|
||||
|
||||
@@ -492,10 +508,10 @@ type RootMutation {
|
||||
deleteAction(id: ID!): DeleteActionResponse
|
||||
|
||||
# Sets User status
|
||||
setUserStatus(id: ID!, status: USER_STATUS!): Boolean
|
||||
setUserStatus(id: ID!, status: USER_STATUS!): SetUserStatusResponse
|
||||
|
||||
# Sets Comment status
|
||||
setCommentStatus(id: ID!, status: COMMENT_STATUS!): Boolean
|
||||
setCommentStatus(id: ID!, status: COMMENT_STATUS!): SetCommentStatusResponse
|
||||
}
|
||||
|
||||
################################################################################
|
||||
|
||||
Reference in New Issue
Block a user