---
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
mutation CreatePost($input: PostInput!) {
|
||||
createPost(input: $input) {
|
||||
...RegularPostResponse
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation DeletePost($id: String!) {
|
||||
deletePost(id: $id)
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation Downvote($postID: String!) {
|
||||
downvote(postID: $postID) {
|
||||
...RegularPost
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
mutation ForgotPassword($email: String!) {
|
||||
forgotPassword(email: $email) {
|
||||
errors {
|
||||
...RegularError
|
||||
}
|
||||
message
|
||||
messageType
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation Login($input: UsernamePasswordInput!) {
|
||||
login(input: $input) {
|
||||
...RegularUserResponse
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
mutation Logout {
|
||||
logout
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation Register($input: UsernamePasswordInput!) {
|
||||
register(input: $input) {
|
||||
...RegularUserResponse
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation RemoveDownvote($postID: String!) {
|
||||
removeDownvote(postID: $postID) {
|
||||
...RegularPost
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation RemoveUpvote($postID: String!) {
|
||||
removeUpvote(postID: $postID) {
|
||||
...RegularPost
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
mutation ResetPassword($newPassword: String!, $token: String!) {
|
||||
resetPassword(newPassword: $newPassword, token: $token) {
|
||||
errors {
|
||||
...RegularError
|
||||
}
|
||||
message
|
||||
messageType
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
mutation UpdatePost($id: String!, $title: String!, $content: String!) {
|
||||
updatePost(id: $id, title: $title, content: $content) {
|
||||
errors {
|
||||
...RegularError
|
||||
}
|
||||
post {
|
||||
...RegularPost
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
mutation Upvote($postID: String!) {
|
||||
upvote(postID: $postID) {
|
||||
...RegularPost
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user