This commit is contained in:
2026-06-24 15:34:09 +02:00
commit 65fb6816ca
442 changed files with 27246 additions and 0 deletions
@@ -0,0 +1,4 @@
fragment RegularError on FieldError {
field
message
}
@@ -0,0 +1,15 @@
fragment RegularPost on Post {
id
authorID
title
content
createdAt
updatedAt
snippet
points
upvoted
downvoted
author {
...RegularUser
}
}
@@ -0,0 +1,8 @@
fragment RegularPostResponse on PostResponse {
errors {
...RegularError
}
post {
...RegularPost
}
}
@@ -0,0 +1,8 @@
fragment RegularUser on User {
id
email
username
password
createdAt
updatedAt
}
@@ -0,0 +1,8 @@
fragment RegularUserResponse on UserResponse {
errors {
...RegularError
}
user {
...RegularUser
}
}
@@ -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
}
}
+5
View File
@@ -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
}
}
@@ -0,0 +1,3 @@
query CheckResetPasswordToken($token: String!) {
checkResetPasswordToken(token: $token)
}
+5
View File
@@ -0,0 +1,5 @@
query Me {
me {
...RegularUser
}
}
+5
View File
@@ -0,0 +1,5 @@
query Post($id: String!) {
post(id: $id) {
...RegularPost
}
}
+5
View File
@@ -0,0 +1,5 @@
query Posts($limit: Int, $cursor: Timestamp) {
posts(limit: $limit, cursor: $cursor) {
...RegularPost
}
}