Skip to content

Commit 5d6248b

Browse files
committed
Add __Service
1 parent 0e821e8 commit 5d6248b

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

rfcs/OnError.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,21 @@ In the end state where error propagation is disabled and clients are error-handl
4141
The default error propagation is indicated in introspection with a new meta-field, `onErrorDefault` of `String!` type.
4242

4343
```graphql
44-
extend type __Schema {
44+
type __Service {
4545
"""
4646
Indicates the error behaviour when `onError` is not present in the request.
4747
One of `NULL`, `PROPAGATE`, `HALT`
4848
"""
4949
onErrorDefault: String!
5050
}
51+
extend type __Schema {
52+
"""
53+
Information relative to the service.
54+
In a perfect world, this is a separate meta-field separate from __Schema but new meta fields are not discoverable
55+
and this is added as a `__Schema` field for backward compatibility reasons.
56+
"""
57+
service: __Service
58+
}
5159
```
5260

5361
Services not supporting `onError` must not support `onErrorDefault` and must ignore the `onError` request property.

0 commit comments

Comments
 (0)