diff options
| author | Fuwn <[email protected]> | 2024-10-06 01:41:44 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-06 01:41:44 -0700 |
| commit | a84d9c9f47c7cd1b345d0283bef9f211a9727893 (patch) | |
| tree | 554827840b67e8a0068e707fad973a8780f47957 /src/graphql/user/schema.graphql | |
| parent | feat(graphql): add subtitles (diff) | |
| download | due.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.graphql | 19 |
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]! |