-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogrammatic-types.graphql
284 lines (216 loc) · 7.67 KB
/
programmatic-types.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
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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
# File generated by "php artisan lighthouse:ide-helper".
# Do not edit this file directly.
# This file should be ignored by git as it can be autogenerated.
"""
The `ID` scalar type represents a unique identifier, often used to
refetch an object or as key for a cache. The ID type appears in a JSON
response as a String; however, it is not intended to be human-readable.
When expected as an input type, any string (such as `"4"`) or integer
(such as `4`) input value will be accepted as an ID.
"""
scalar ID
"""
The `String` scalar type represents textual data, represented as UTF-8
character sequences. The String type is most often used by GraphQL to
represent free-form human-readable text.
"""
scalar String
"""
The `Int` scalar type represents non-fractional signed whole numeric
values. Int can represent values between -(2^31) and 2^31 - 1.
"""
scalar Int
"The `Boolean` scalar type represents `true` or `false`."
scalar Boolean
"Information about pagination using a fully featured paginator."
type PaginatorInfo {
"Number of items in the current page."
count: Int!
"Index of the current page."
currentPage: Int!
"Index of the first item in the current page."
firstItem: Int
"Are there more pages after this one?"
hasMorePages: Boolean!
"Index of the last item in the current page."
lastItem: Int
"Index of the last available page."
lastPage: Int!
"Number of items per page."
perPage: Int!
"Number of total available items."
total: Int!
}
"A paginated list of User items."
type UserPaginator {
"Pagination information about the list of items."
paginatorInfo: PaginatorInfo!
"A list of User items."
data: [User!]!
}
"Directions for ordering a list of records."
enum SortOrder {
"Sort records in ascending order."
ASC
"Sort records in descending order."
DESC
}
"Aggregate functions when ordering by a relation without specifying a column."
enum OrderByRelationAggregateFunction {
"Amount of items."
COUNT
}
"Aggregate functions when ordering by a relation that may specify a column."
enum OrderByRelationWithColumnAggregateFunction {
"Average."
AVG
"Minimum."
MIN
"Maximum."
MAX
"Sum."
SUM
"Amount of items."
COUNT
}
"Allows ordering a list of records."
input OrderByClause {
"The column that is used for ordering."
column: String!
"The direction that is used for ordering."
order: SortOrder!
}
"Specify if you want to include or exclude trashed results from a query."
enum Trashed {
"Only return trashed results."
ONLY
"Return both trashed and non-trashed results."
WITH
"Only return non-trashed results."
WITHOUT
}
"A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations."
type __Schema {
"A list of all types supported by this server."
types: [__Type!]!
"The type that query operations will be rooted at."
queryType: __Type!
"If this server supports mutation, the type that mutation operations will be rooted at."
mutationType: __Type
"If this server support subscription, the type that subscription operations will be rooted at."
subscriptionType: __Type
"A list of all directives supported by this server."
directives: [__Directive!]!
}
"""
The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.
Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name and description, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.
"""
type __Type {
kind: __TypeKind!
name: String
description: String
fields(includeDeprecated: Boolean = false): [__Field!]
interfaces: [__Type!]
possibleTypes: [__Type!]
enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
inputFields(includeDeprecated: Boolean = false): [__InputValue!]
ofType: __Type
}
"An enum describing what kind of type a given `__Type` is."
enum __TypeKind {
"Indicates this type is a scalar."
SCALAR
"Indicates this type is an object. `fields` and `interfaces` are valid fields."
OBJECT
"Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."
INTERFACE
"Indicates this type is a union. `possibleTypes` is a valid field."
UNION
"Indicates this type is an enum. `enumValues` is a valid field."
ENUM
"Indicates this type is an input object. `inputFields` is a valid field."
INPUT_OBJECT
"Indicates this type is a list. `ofType` is a valid field."
LIST
"Indicates this type is a non-null. `ofType` is a valid field."
NON_NULL
}
"Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type."
type __Field {
name: String!
description: String
args(includeDeprecated: Boolean = false): [__InputValue!]!
type: __Type!
isDeprecated: Boolean!
deprecationReason: String
}
"Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value."
type __InputValue {
name: String!
description: String
type: __Type!
"A GraphQL-formatted string representing the default value for this input value."
defaultValue: String
isDeprecated: Boolean!
deprecationReason: String
}
"One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string."
type __EnumValue {
name: String!
description: String
isDeprecated: Boolean!
deprecationReason: String
}
"""
A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
In some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.
"""
type __Directive {
name: String!
description: String
isRepeatable: Boolean!
locations: [__DirectiveLocation!]!
args: [__InputValue!]!
}
"A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies."
enum __DirectiveLocation {
"Location adjacent to a query operation."
QUERY
"Location adjacent to a mutation operation."
MUTATION
"Location adjacent to a subscription operation."
SUBSCRIPTION
"Location adjacent to a field."
FIELD
"Location adjacent to a fragment definition."
FRAGMENT_DEFINITION
"Location adjacent to a fragment spread."
FRAGMENT_SPREAD
"Location adjacent to an inline fragment."
INLINE_FRAGMENT
"Location adjacent to a variable definition."
VARIABLE_DEFINITION
"Location adjacent to a schema definition."
SCHEMA
"Location adjacent to a scalar definition."
SCALAR
"Location adjacent to an object type definition."
OBJECT
"Location adjacent to a field definition."
FIELD_DEFINITION
"Location adjacent to an argument definition."
ARGUMENT_DEFINITION
"Location adjacent to an interface definition."
INTERFACE
"Location adjacent to a union definition."
UNION
"Location adjacent to an enum definition."
ENUM
"Location adjacent to an enum value definition."
ENUM_VALUE
"Location adjacent to an input object type definition."
INPUT_OBJECT
"Location adjacent to an input object field definition."
INPUT_FIELD_DEFINITION
}