Add ignoreUser mutation and myIgnoredUsers root query

This commit is contained in:
Benjamin Goering
2017-04-11 14:19:32 -07:00
parent d3d7045227
commit 545f176bb8
8 changed files with 132 additions and 2 deletions
+13
View File
@@ -537,6 +537,9 @@ type RootQuery {
# role.
me: User
# Users that the currently logged in user ignores
myIgnoredUsers: [User]
# Users returned based on a query.
users(query: UsersQuery): [User]
@@ -703,6 +706,13 @@ type RemoveCommentTagResponse implements Response {
errors: [UserError]
}
# Response to ignoreUser mutation
type IgnoreUserResponse 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 {
@@ -735,6 +745,9 @@ type RootMutation {
# Remove tag from comment.
removeCommentTag(id: ID!, tag: String!): RemoveCommentTagResponse
# Ignore comments by another user
ignoreUser(id: ID!): IgnoreUserResponse
}
################################################################################