aboutsummaryrefslogtreecommitdiff
path: root/src/graphql/user/schema.graphql
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-06 01:41:44 -0700
committerFuwn <[email protected]>2024-10-06 01:41:44 -0700
commita84d9c9f47c7cd1b345d0283bef9f211a9727893 (patch)
tree554827840b67e8a0068e707fad973a8780f47957 /src/graphql/user/schema.graphql
parentfeat(graphql): add subtitles (diff)
downloaddue.moe-a84d9c9f47c7cd1b345d0283bef9f211a9727893.tar.xz
due.moe-a84d9c9f47c7cd1b345d0283bef9f211a9727893.zip
feat(badges): move badge operations to graphql
Diffstat (limited to 'src/graphql/user/schema.graphql')
-rw-r--r--src/graphql/user/schema.graphql19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/graphql/user/schema.graphql b/src/graphql/user/schema.graphql
index 942ee72d..1e54f866 100644
--- a/src/graphql/user/schema.graphql
+++ b/src/graphql/user/schema.graphql
@@ -2,6 +2,25 @@ type Query {
User(id: Int!): User!
}
+type Mutation {
+ shadowHideBadges(userId: Int!): [Badge]!
+ shadowHideBadge(id: Int!, state: Boolean): [Badge]!
+ hideBadge(category: String): [Badge]!
+ updateBadge(
+ id: Int
+ post: String
+ image: String
+ description: String
+ time: String
+ category: String
+ hidden: Boolean
+ source: String
+ designer: String
+ ): [Badge]!
+ deleteBadge(id: Int!): [Badge]!
+ pruneUserBadges: [Badge]!
+}
+
type User {
id: Int!
badges: [Badge]!