Skip to content

Commit c68c09b

Browse files
committed
Apply changes for error behavior
1 parent 75dc26a commit c68c09b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

spec/Section 3 -- Type System.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -227,8 +227,9 @@ The type system definition language can omit the schema definition entirely when
227227
all of the following hold:
228228

229229
- 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_.
232233

233234
Likewise, when representing a GraphQL schema using the type system definition
234235
language, a schema definition should be omitted if all of the above conditions
@@ -270,14 +271,17 @@ type Mutation {
270271
}
271272
```
272273

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:
275279

276280
```graphql example
277281
"""
278282
Example schema
279283
"""
280-
schema
284+
schema @behavior(onError: NO_PROPAGATE)
281285

282286
type Query {
283287
someField: String
@@ -2216,7 +2220,5 @@ In this example, the schema indicates it is using the {"NO\_PROPAGATE"} _default
22162220
error behavior_:
22172221

22182222
```graphql example
2219-
schema @behavior(onError: NO_PROPAGATE) {
2220-
query: Query
2221-
}
2223+
schema @behavior(onError: NO_PROPAGATE)
22222224
```

0 commit comments

Comments
 (0)