@@ -227,8 +227,9 @@ The type system definition language can omit the schema definition entirely when
227227all 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
233234Likewise , when representing a GraphQL schema using the type system definition
234235language, 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"""
278282Example schema
279283"""
280- schema
284+ schema @behavior ( onError : NO_PROPAGATE )
281285
282286type Query {
283287 someField : String
@@ -2216,7 +2220,5 @@ In this example, the schema indicates it is using the {"NO\_PROPAGATE"} _default
22162220error 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