forked from project-zot/zot
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathent.graphql
More file actions
264 lines (264 loc) · 6.43 KB
/
Copy pathent.graphql
File metadata and controls
264 lines (264 loc) · 6.43 KB
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
directive @goField(forceResolver: Boolean, name: String) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION
directive @goModel(model: String, models: [String!]) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION
"""
CreateObjectInput is used for create Object object.
Input was generated by ent.
"""
input CreateObjectInput {
objecttype: String!
object: Map!
statementIDs: [ID!]
}
"""
CreateSpredicateInput is used for create Spredicate object.
Input was generated by ent.
"""
input CreateSpredicateInput {
predicatetype: String!
predicate: Map!
statementIDs: [ID!]
}
"""
CreateStatementInput is used for create Statement object.
Input was generated by ent.
"""
input CreateStatementInput {
namespace: String!
statement: Map!
objectIDs: [ID!]
predicateIDs: [ID!]
subjectIDs: [ID!]
}
"""
CreateSubjectInput is used for create Subject object.
Input was generated by ent.
"""
input CreateSubjectInput {
subjecttype: String!
subject: Map!
statementIDs: [ID!]
}
"""
Define a Relay Cursor type:
https://relay.dev/graphql/connections.htm#sec-Cursor
"""
scalar Cursor
"""The builtin Map type"""
scalar Map
"""
An object with an ID.
Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm)
"""
interface Node @goModel(model: "zotregistry.io/zot/ent.Noder") {
"""The id of the object."""
id: ID!
}
type Object implements Node {
id: ID!
objecttype: String! @goField(name: "ObjectType", forceResolver: false)
object: Map!
statement: [Statement!]
}
"""
ObjectWhereInput is used for filtering Object objects.
Input was generated by ent.
"""
input ObjectWhereInput {
not: ObjectWhereInput
and: [ObjectWhereInput!]
or: [ObjectWhereInput!]
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""objectType field predicates"""
objecttype: String
objecttypeNEQ: String
objecttypeIn: [String!]
objecttypeNotIn: [String!]
objecttypeGT: String
objecttypeGTE: String
objecttypeLT: String
objecttypeLTE: String
objecttypeContains: String
objecttypeHasPrefix: String
objecttypeHasSuffix: String
objecttypeEqualFold: String
objecttypeContainsFold: String
"""statement edge predicates"""
hasStatement: Boolean
hasStatementWith: [StatementWhereInput!]
}
"""Possible directions in which to order a list of items when provided an `orderBy` argument."""
enum OrderDirection {
"""Specifies an ascending order for a given `orderBy` argument."""
ASC
"""Specifies a descending order for a given `orderBy` argument."""
DESC
}
"""
Information about pagination in a connection.
https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo
"""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!
"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!
"""When paginating backwards, the cursor to continue."""
startCursor: Cursor
"""When paginating forwards, the cursor to continue."""
endCursor: Cursor
}
type Query {
"""Fetches an object given its ID."""
node(
"""ID of the object."""
id: ID!
): Node
"""Lookup nodes by a list of IDs."""
nodes(
"""The list of node IDs."""
ids: [ID!]!
): [Node]!
objects: [Object!]!
spredicates: [Spredicate!]!
statements: [Statement!]!
subjects: [Subject!]!
}
type Spredicate implements Node {
id: ID!
predicatetype: String! @goField(name: "PredicateType", forceResolver: false)
predicate: Map!
statement: [Statement!]
}
"""
SpredicateWhereInput is used for filtering Spredicate objects.
Input was generated by ent.
"""
input SpredicateWhereInput {
not: SpredicateWhereInput
and: [SpredicateWhereInput!]
or: [SpredicateWhereInput!]
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""predicateType field predicates"""
predicatetype: String
predicatetypeNEQ: String
predicatetypeIn: [String!]
predicatetypeNotIn: [String!]
predicatetypeGT: String
predicatetypeGTE: String
predicatetypeLT: String
predicatetypeLTE: String
predicatetypeContains: String
predicatetypeHasPrefix: String
predicatetypeHasSuffix: String
predicatetypeEqualFold: String
predicatetypeContainsFold: String
"""statement edge predicates"""
hasStatement: Boolean
hasStatementWith: [StatementWhereInput!]
}
type Statement implements Node {
id: ID!
namespace: String!
statement: Map!
objects: [Object!]
predicates: [Spredicate!]
subjects: [Subject!]
}
"""
StatementWhereInput is used for filtering Statement objects.
Input was generated by ent.
"""
input StatementWhereInput {
not: StatementWhereInput
and: [StatementWhereInput!]
or: [StatementWhereInput!]
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""namespace field predicates"""
namespace: String
namespaceNEQ: String
namespaceIn: [String!]
namespaceNotIn: [String!]
namespaceGT: String
namespaceGTE: String
namespaceLT: String
namespaceLTE: String
namespaceContains: String
namespaceHasPrefix: String
namespaceHasSuffix: String
namespaceEqualFold: String
namespaceContainsFold: String
"""objects edge predicates"""
hasObjects: Boolean
hasObjectsWith: [ObjectWhereInput!]
"""predicates edge predicates"""
hasPredicates: Boolean
hasPredicatesWith: [SpredicateWhereInput!]
"""subjects edge predicates"""
hasSubjects: Boolean
hasSubjectsWith: [SubjectWhereInput!]
}
type Subject implements Node {
id: ID!
subjecttype: String! @goField(name: "SubjectType", forceResolver: false)
subject: Map!
statement: [Statement!]
}
"""
SubjectWhereInput is used for filtering Subject objects.
Input was generated by ent.
"""
input SubjectWhereInput {
not: SubjectWhereInput
and: [SubjectWhereInput!]
or: [SubjectWhereInput!]
"""id field predicates"""
id: ID
idNEQ: ID
idIn: [ID!]
idNotIn: [ID!]
idGT: ID
idGTE: ID
idLT: ID
idLTE: ID
"""subjectType field predicates"""
subjecttype: String
subjecttypeNEQ: String
subjecttypeIn: [String!]
subjecttypeNotIn: [String!]
subjecttypeGT: String
subjecttypeGTE: String
subjecttypeLT: String
subjecttypeLTE: String
subjecttypeContains: String
subjecttypeHasPrefix: String
subjecttypeHasSuffix: String
subjecttypeEqualFold: String
subjecttypeContainsFold: String
"""statement edge predicates"""
hasStatement: Boolean
hasStatementWith: [StatementWhereInput!]
}