Skip to content

Commit ffb8cad

Browse files
committed
defer/stream is optional for GraphQL services
1 parent fcf898f commit ffb8cad

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/Section 3 -- Type System.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1947,6 +1947,14 @@ GraphQL implementations that support the type system definition language must
19471947
provide the `@deprecated` directive if representing deprecated portions of the
19481948
schema.
19491949

1950+
GraphQL services are not required to implement the `@defer` and `@stream`
1951+
directives. If either or both of these directives are implemented, they must be
1952+
implemented according to this specification. GraphQL services that do not
1953+
support these directives must not make them available via introspection. The
1954+
[Directives Are Defined](#sec-Directives-Are-Defined) validation rule will
1955+
prevent GraphQL Operations containing the `@defer` or `@stream` directive from
1956+
being executed by a GraphQL service that does not implement these directives.
1957+
19501958
GraphQL implementations that support the type system definition language should
19511959
provide the `@specifiedBy` directive if representing custom scalar definitions.
19521960

@@ -2166,14 +2174,6 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")
21662174

21672175
### @defer
21682176

2169-
GraphQL implementations are not required to implement the `@defer` and `@stream`
2170-
directives. If either or both of these directives are implemented, they must be
2171-
implemented according to this specification. GraphQL implementations that do not
2172-
support these directives must not make them available via introspection. The
2173-
[Directives Are Defined](#sec-Directives-Are-Defined) validation rule will
2174-
prevent GraphQL Operations containing the `@defer` or `@stream` directive from
2175-
being executed by a GraphQL service that does not implement these directives.
2176-
21772177
```graphql
21782178
directive @defer(
21792179
label: String

0 commit comments

Comments
 (0)