-
Notifications
You must be signed in to change notification settings - Fork 27
/
schemaAdmin.graphql
executable file
·52 lines (48 loc) · 1.06 KB
/
schemaAdmin.graphql
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
42
43
44
45
46
47
48
49
50
51
52
type CustomerResult {
content: [Customer]
first: Boolean
last: Boolean
number: Int
numberOfElements: Int
size: Int
totalPages: Int
totalElements: Int
}
type OptionResult {
content: [Option]
first: Boolean
last: Boolean
number: Int
numberOfElements: Int
size: Int
totalPages: Int
totalElements: Int
}
type Option {
id: String
name: String
type: String
sort_order: Int
values: [OptionValue]
}
input InputAppSetting {
eventUrl: String
jwt: String
authUrl: String
}
type AppSetting {
codename: String
authUrl: String
eventUrl: String
jwt: String
}
type RootQueryType {
customersList(page: Int = 1, size: Int = 10, search: String, sort: String = "email", order: String = "ASC"): CustomerResult
customer(id: String): Customer
option(id: String): Option
optionsList(page: Int = 1, size: Int = 10, search: String, sort: String = "sort_order", order: String = "ASC"): OptionResult
}
type RootMutationType {
updateApp(name: String, settings: InputAppSetting): AppSetting
updateSite(number: Int): Boolean
}