@@ -227,8 +227,9 @@ The type system definition language can omit the schema definition entirely when
227
227
all of the following hold:
228
228
229
229
- each _root operation type_ uses its respective _default root type name_,
230
- - no other type uses any _default root type name_, and
231
- - the schema does not have a description.
230
+ - no other type uses any _default root type name_,
231
+ - the schema does not have a description, and
232
+ - the schema uses the {"PROPAGATE" } _default error behavior_ .
232
233
233
234
Likewise , when representing a GraphQL schema using the type system definition
234
235
language, a schema definition should be omitted if all of the above conditions
@@ -270,14 +271,17 @@ type Mutation {
270
271
}
271
272
```
272
273
273
- This example describes a valid GraphQL schema with a description and both a
274
- {`query`} and {`mutation `} operation type :
274
+ <!-- https ://github .com /prettier /prettier /issues /17286 -->
275
+ <!-- prettier -ignore -->
276
+ This example describes a valid GraphQL schema with a description, _default
277
+ error behavior_ of {"NO\_PROPAGATE" }, and both a {`query `} and {`mutation `}
278
+ operation type :
275
279
276
280
```graphql example
277
281
"""
278
282
Example schema
279
283
"""
280
- schema
284
+ schema @behavior ( onError : NO_PROPAGATE )
281
285
282
286
type Query {
283
287
someField : String
@@ -2216,7 +2220,5 @@ In this example, the schema indicates it is using the {"NO\_PROPAGATE"} _default
2216
2220
error behavior_ :
2217
2221
2218
2222
```graphql example
2219
- schema @behavior (onError : NO_PROPAGATE ) {
2220
- query : Query
2221
- }
2223
+ schema @behavior (onError : NO_PROPAGATE )
2222
2224
```
0 commit comments