forked from wednesday-solutions/go-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
role.graphql
67 lines (57 loc) · 939 Bytes
/
role.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
type Role {
id: ID!
accessLevel: Int!
name: String!
updatedAt: Int
deletedAt: Int
createdAt: Int
users: [User]
}
input RoleFilter {
search: String
where: RoleWhere
}
input RolePagination {
limit: Int!
page: Int!
}
input RoleWhere {
id: IDFilter
accessLevel: IntFilter
name: StringFilter
updatedAt: IntFilter
deletedAt: IntFilter
createdAt: IntFilter
users: UserWhere
or: RoleWhere
and: RoleWhere
}
input RoleCreateInput {
accessLevel: Int!
name: String!
}
input RoleUpdateInput {
accessLevel: Int
name: String
updatedAt: Int
deletedAt: Int
createdAt: Int
}
input RolesCreateInput {
roles: [RoleCreateInput!]!
}
type RolePayload {
role: Role!
}
type RoleDeletePayload {
id: ID!
}
type RolesPayload {
roles: [Role!]!
}
type RolesDeletePayload {
ids: [ID!]!
}
type RolesUpdatePayload {
ok: Boolean!
}