-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.gql
117 lines (93 loc) · 2.1 KB
/
schema.gql
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Category {
id: String!
name: String!
}
type CategoryGroup {
id: String!
name: String!
children: [Category!]!
}
type CreateCategoryGroupErrors {
name: String
}
type CreateCategoryGroupResponse {
result: CategoryGroup
errors: CreateCategoryGroupErrors
}
type UpdateCategoryGroupErrors {
id: String
name: String
}
type UpdateCategoryGroupResponse {
result: CategoryGroup
errors: UpdateCategoryGroupErrors
}
type DeleteCategoryGroupErrors {
id: String
}
type DeleteCategoryGroupResponse {
errors: DeleteCategoryGroupErrors
}
type CreateCategoryErrors {
name: String
groupId: String
}
type CreateCategoryResponse {
result: Category
errors: CreateCategoryErrors
}
type UpdateCategoryErrors {
id: String
name: String
}
type UpdateCategoryResponse {
result: Category
errors: UpdateCategoryErrors
}
type DeleteCategoryErrors {
id: String
}
type DeleteCategoryResponse {
errors: DeleteCategoryErrors
}
type CategoryGroupsList {
rows: [CategoryGroup!]!
}
type Query {
categoryGroups(filters: CategoryGroupsFilter): CategoryGroupsList!
}
input CategoryGroupsFilter {
search: String
}
type Mutation {
createCategoryGroup(input: CreateCategoryGroupInput!): CreateCategoryGroupResponse!
updateCategoryGroup(input: UpdateCategoryGroupInput!): UpdateCategoryGroupResponse!
deleteCategoryGroup(input: DeleteCategoryGroupInput!): DeleteCategoryGroupResponse!
createCategory(input: CreateCategoryInput!): CreateCategoryResponse!
updateCategory(input: UpdateCategoryInput!): UpdateCategoryResponse!
deleteCategory(input: DeleteCategoryInput!): DeleteCategoryResponse!
}
input CreateCategoryGroupInput {
name: String!
}
input UpdateCategoryGroupInput {
id: String!
name: String!
}
input DeleteCategoryGroupInput {
id: String!
}
input CreateCategoryInput {
name: String!
groupId: String!
}
input UpdateCategoryInput {
id: String!
name: String!
}
input DeleteCategoryInput {
id: String!
}