aboutsummaryrefslogtreecommitdiff
path: root/src/graphql/user/schema.graphql
blob: 1e54f8669bd559e16e79c3af50bebca7b84b5ff1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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]!
}

type Badge {
	post: String
	image: String
	description: String
	id: Int
	time: String
	category: String
	hidden: Boolean
	source: String
	designer: String
	shadow_hidden: Boolean
	click_count: Int
}