Skip to content

Commit 8c40086

Browse files
committed
Use a definition
1 parent 1f975e4 commit 8c40086

File tree

2 files changed

+14
-13
lines changed

2 files changed

+14
-13
lines changed

spec/Section 4 -- Introspection.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -525,16 +525,15 @@ Fields\:
525525

526526
### The \_\_Capability Type
527527

528-
The `__Service.capabilities` field exposes a list of capabilities that describe
529-
features supported by the GraphQL service but not directly expressible in the
530-
type system. These may include experimental GraphQL features (such as fragment
531-
arguments, operation descriptions, custom error behaviors), protocol support
532-
(such as subscriptions over WebSocket), or additional operational metadata (such
533-
as release identifiers).
534-
535-
Capabilities may be supplied by the GraphQL implementation, by the service, or
536-
both. An individual entry in the capabilities list will have a capability
537-
identifier and may optionally provide a string value.
528+
:: A _capability_ describes a feature supported by the GraphQL service but not
529+
directly expressible in the type system. This may include experimental GraphQL
530+
features (such as new syntax or behavior), protocol support (such as GraphQL
531+
over WebSockets), or additional operational metadata (such as release
532+
identifiers). Capabilities may be supplied by the GraphQL implementation, by the
533+
service, or both.
534+
535+
The `__Service.capabilities` field exposes a _capability_ list. A _capability_
536+
comprises of a capability identifier and optionally a string value.
538537

539538
**Capability identifier**
540539

spec/Section 6 -- Execution.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -865,11 +865,13 @@ _request_. If omitted, the _default error behavior_ of the service applies.
865865
Valid values for _error behavior_ are {"PROPAGATE"}, {"NO_PROPAGATE"} and
866866
{"HALT"}.
867867

868+
<!-- https://github.com/prettier/prettier/issues/17286 -->
869+
<!-- prettier-ignore -->
868870
:: The _default error behavior_ of a service is implementation-defined. For
869871
compatibility with existing clients, services should default to {"PROPAGATE"}
870-
which reflects prior behavior. For new services, {"NO_PROPAGATE"} is
871-
recommended. The default error behavior is indicated via the
872-
`defaultErrorBehavior` field of the `__Service` introspection type.
872+
which reflects prior behavior. <!-- For new services, {"NO_PROPAGATE"} is
873+
recommended. --> The default error behavior is indicated via the
874+
`org.graphql.defaultErrorBehavior` _capability_.
873875

874876
Note: {"HALT"} is not recommended as the _default error behavior_ because it
875877
prevents generating partial responses which may still contain useful data.

0 commit comments

Comments
 (0)