You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
systemdefinitionlanguagecanomittheschema definition when the `query`, `mutation`, and `subscription` root types are named `Query`, `Mutation`, and
124
+
systemdefinitionlanguagecanomittheschema definition when the `query`,
125
+
`mutation`, and `subscription` root types are named `Query`, `Mutation`, and
124
126
`Subscription` respectively.
125
127
126
128
Likewise, when representing a GraphQL schema using the type system language, a
@@ -149,7 +151,8 @@ made available via introspection.
149
151
150
152
To allow GraphQL service designers to easily publish documentation alongside the
151
153
capabilities of a GraphQL service, GraphQL descriptions are defined using the
152
-
Markdown syntax (as specified by [CommonMark](http://commonmark.org/)). In the type system definition language, these description strings (often {BlockString})
154
+
Markdown syntax (as specified by [CommonMark](http://commonmark.org/)). In the
155
+
type system definition language, these description strings (often {BlockString})
153
156
occur immediately before the definition they describe.
154
157
155
158
All GraphQL types, fields, arguments and other definitions which can be
@@ -240,7 +243,8 @@ A GraphQL schema may describe that a field represents list of another types;
240
243
the `List` type is provided for this reason, and wraps another type.
241
244
242
245
Similarly, the `Non-Null` type wraps another type, and denotes that the
243
-
resulting value will never be null.
246
+
resulting value will never be {null} (and that an error cannot result in a
247
+
{null} value).
244
248
245
249
These two types are referred to as "wrapping types"; non-wrapping types are
246
250
referred to as "named types". A wrapping type has an underlying named type,
@@ -1002,7 +1006,7 @@ In this example, a directive is added to a `NamedEntity` type without
1002
1006
addingfields:
1003
1007
1004
1008
```graphqlexample
1005
-
extendtypeNamedEntity@addedDirective
1009
+
extendinterfaceNamedEntity@addedDirective
1006
1010
```
1007
1011
1008
1012
**TypeValidation**
@@ -1189,7 +1193,7 @@ input value with the same name.
1189
1193
1190
1194
Enum types have the potential to be invalid if incorrectly defined.
1191
1195
1192
-
1.A Enum type must define one or more unique enum values.
1196
+
1.An Enum type must define one or more unique enum values.
1193
1197
1194
1198
1195
1199
### Enum Extensions
@@ -1207,11 +1211,11 @@ extension of another GraphQL service.
1207
1211
1208
1212
Enum type extensions have the potential to be invalid if incorrectly defined.
1209
1213
1210
-
1. The named type must already be defined and must be a Enum type.
1211
-
3. All values of a Enum type extension must be unique.
1212
-
4. All values of a Enum type extension must not already be a value of
1214
+
1. The named type must already be defined and must be an Enum type.
1215
+
2. All values of an Enum type extension must be unique.
1216
+
3. All values of an Enum type extension must not already be a value of
1213
1217
the original Enum.
1214
-
5. Any directives provided must not already apply to the original Enum type.
1218
+
4. Any directives provided must not already apply to the original Enum type.
1215
1219
1216
1220
1217
1221
## Input Objects
@@ -1391,6 +1395,10 @@ should be performed. If that result was not {null}, then the result of coercing
0 commit comments