Debian Codegraph @

validator/imported/prelude.graphql

raw
1 # This file defines all the implicitly declared types that are required by the graphql spec. It is implicitly included by calls to LoadSchema
2
3 "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1."
4 scalar Int
5
6 "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](http://en.wikipedia.org/wiki/IEEE_floating_point)."
7 scalar Float
8
9 "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."
10 scalar String
11
12 "The `Boolean` scalar type represents `true` or `false`."
13 scalar Boolean
14
15 """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."""
16 scalar ID
17
18 "Directs the executor to defer this fragment when the `if` argument is true or undefined."
19 directive @defer(
20 "Deferred when true or undefined."
21 if: Boolean = true,
22 "Unique name"
23 label: String
24 ) on FRAGMENT_SPREAD | INLINE_FRAGMENT
25
26 """
27 Directs the executor to include this field or fragment only when the `if` argument is true.
28 """
29 directive @include(
30 """Included when true."""
31 if: Boolean!
32 ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
33
34 """
35 Directs the executor to skip this field or fragment when the `if` argument is true.
36 """
37 directive @skip(
38 """Skipped when true."""
39 if: Boolean!
40 ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
41
42 """Marks an element of a GraphQL schema as no longer supported."""
43 directive @deprecated(
44 """
45 Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).
46 """
47 reason: String = "No longer supported"
48 ) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
49
50 """Exposes a URL that specifies the behavior of this scalar."""
51 directive @specifiedBy(
52 """The URL that specifies the behavior of this scalar."""
53 url: String!
54 ) on SCALAR
55
56 """
57 Indicates exactly one field must be supplied and this field must not be `null`.
58 """
59 directive @oneOf on INPUT_OBJECT
60
61 """
62 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.
63 """
64 type __Schema {
65 description: String
66
67 """A list of all types supported by this server."""
68 types: [__Type!]!
69
70 """The type that query operations will be rooted at."""
71 queryType: __Type!
72
73 """
74 If this server supports mutation, the type that mutation operations will be rooted at.
75 """
76 mutationType: __Type
77
78 """
79 If this server support subscription, the type that subscription operations will be rooted at.
80 """
81 subscriptionType: __Type
82
83 """A list of all directives supported by this server."""
84 directives: [__Directive!]!
85 }
86
87 """
88 The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.
89
90 Depending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, 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.
91 """
92 type __Type {
93 kind: __TypeKind!
94 name: String
95 description: String
96 specifiedByURL: String
97 fields(includeDeprecated: Boolean = false): [__Field!]
98 interfaces: [__Type!]
99 possibleTypes: [__Type!]
100 enumValues(includeDeprecated: Boolean = false): [__EnumValue!]
101 inputFields(includeDeprecated: Boolean = false): [__InputValue!]
102 ofType: __Type
103 isOneOf: Boolean
104 }
105
106 """An enum describing what kind of type a given `__Type` is."""
107 enum __TypeKind {
108 """Indicates this type is a scalar."""
109 SCALAR
110
111 """
112 Indicates this type is an object. `fields` and `interfaces` are valid fields.
113 """
114 OBJECT
115
116 """
117 Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields.
118 """
119 INTERFACE
120
121 """Indicates this type is a union. `possibleTypes` is a valid field."""
122 UNION
123
124 """Indicates this type is an enum. `enumValues` is a valid field."""
125 ENUM
126
127 """
128 Indicates this type is an input object. `inputFields` is a valid field.
129 """
130 INPUT_OBJECT
131
132 """Indicates this type is a list. `ofType` is a valid field."""
133 LIST
134
135 """Indicates this type is a non-null. `ofType` is a valid field."""
136 NON_NULL
137 }
138
139 """
140 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.
141 """
142 type __Field {
143 name: String!
144 description: String
145 args(includeDeprecated: Boolean = false): [__InputValue!]!
146 type: __Type!
147 isDeprecated: Boolean!
148 deprecationReason: String
149 }
150
151 """
152 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.
153 """
154 type __InputValue {
155 name: String!
156 description: String
157 type: __Type!
158
159 """
160 A GraphQL-formatted string representing the default value for this input value.
161 """
162 defaultValue: String
163 isDeprecated: Boolean!
164 deprecationReason: String
165 }
166
167 """
168 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.
169 """
170 type __EnumValue {
171 name: String!
172 description: String
173 isDeprecated: Boolean!
174 deprecationReason: String
175 }
176
177 """
178 A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.
179
180 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.
181 """
182 type __Directive {
183 name: String!
184 description: String
185 isRepeatable: Boolean!
186 locations: [__DirectiveLocation!]!
187 args(includeDeprecated: Boolean = false): [__InputValue!]!
188 }
189
190 """
191 A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.
192 """
193 enum __DirectiveLocation {
194 """Location adjacent to a query operation."""
195 QUERY
196
197 """Location adjacent to a mutation operation."""
198 MUTATION
199
200 """Location adjacent to a subscription operation."""
201 SUBSCRIPTION
202
203 """Location adjacent to a field."""
204 FIELD
205
206 """Location adjacent to a fragment definition."""
207 FRAGMENT_DEFINITION
208
209 """Location adjacent to a fragment spread."""
210 FRAGMENT_SPREAD
211
212 """Location adjacent to an inline fragment."""
213 INLINE_FRAGMENT
214
215 """Location adjacent to a variable definition."""
216 VARIABLE_DEFINITION
217
218 """Location adjacent to a schema definition."""
219 SCHEMA
220
221 """Location adjacent to a scalar definition."""
222 SCALAR
223
224 """Location adjacent to an object type definition."""
225 OBJECT
226
227 """Location adjacent to a field definition."""
228 FIELD_DEFINITION
229
230 """Location adjacent to an argument definition."""
231 ARGUMENT_DEFINITION
232
233 """Location adjacent to an interface definition."""
234 INTERFACE
235
236 """Location adjacent to a union definition."""
237 UNION
238
239 """Location adjacent to an enum definition."""
240 ENUM
241
242 """Location adjacent to an enum value definition."""
243 ENUM_VALUE
244
245 """Location adjacent to an input object type definition."""
246 INPUT_OBJECT
247
248 """Location adjacent to an input object field definition."""
249 INPUT_FIELD_DEFINITION
250 }