Skip to content

Commit 22de5de

Browse files
committed
replace server with service
1 parent e4ee3eb commit 22de5de

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

spec/Section 3 -- Type System.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -2209,8 +2209,8 @@ fragment someFragment on User {
22092209
omitted.
22102210
- `label: String` - May be used by GraphQL clients to identify the data from
22112211
responses and associate it with the corresponding defer directive. If
2212-
provided, the GraphQL Server must add it to the corresponding payload. `label`
2213-
must be unique label across all `@defer` and `@stream` directives in a
2212+
provided, the GraphQL service must add it to the corresponding payload.
2213+
`label` must be unique label across all `@defer` and `@stream` directives in a
22142214
document. `label` must not be provided as a variable.
22152215

22162216
### @stream
@@ -2246,19 +2246,19 @@ query myQuery($shouldStream: Boolean) {
22462246
when omitted.
22472247
- `label: String` - May be used by GraphQL clients to identify the data from
22482248
responses and associate it with the corresponding stream directive. If
2249-
provided, the GraphQL Server must add it to the corresponding payload. `label`
2250-
must be unique label across all `@defer` and `@stream` directives in a
2249+
provided, the GraphQL service must add it to the corresponding payload.
2250+
`label` must be unique label across all `@defer` and `@stream` directives in a
22512251
document. `label` must not be provided as a variable.
2252-
- `initialCount: Int` - The number of list items the server should return as
2252+
- `initialCount: Int` - The number of list items the service should return as
22532253
part of the initial response. If omitted, defaults to `0`. A field error will
22542254
be raised if the value of this argument is less than `0`.
22552255

22562256
Note: The ability to defer and/or stream parts of a response can have a
22572257
potentially significant impact on application performance. Developers generally
22582258
need clear, predictable control over their application's performance. It is
2259-
highly recommended that GraphQL servers honor the `@defer` and `@stream`
2259+
highly recommended that GraphQL services honor the `@defer` and `@stream`
22602260
directives on each execution. However, the specification allows advanced use
2261-
cases where the server can determine that it is more performant to not defer
2261+
cases where the service can determine that it is more performant to not defer
22622262
and/or stream. Therefore, GraphQL clients _must_ be able to process a response
22632263
that ignores the `@defer` and/or `@stream` directives. This also applies to the
22642264
`initialCount` argument on the `@stream` directive. Clients _must_ be able to

spec/Section 7 -- Response.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,10 @@ all but the last response in the stream. The value of this entry is `false` for
3939
the last response of the stream. This entry must not be present for GraphQL
4040
operations that return a single response map.
4141

42-
The GraphQL server may determine there are no more values in the response stream
43-
after a previous value with `hasNext` equal to `true` has been emitted. In this
44-
case the last value in the response stream should be a map without `data` and
45-
`incremental` entries, and a `hasNext` entry with a value of `false`.
42+
The GraphQL service may determine there are no more values in the response
43+
stream after a previous value with `hasNext` equal to `true` has been emitted.
44+
In this case the last value in the response stream should be a map without
45+
`data` and `incremental` entries, and a `hasNext` entry with a value of `false`.
4646

4747
The response map may also contain an entry with key `extensions`. This entry, if
4848
set, must have a map as its value. This entry is reserved for implementors to

0 commit comments

Comments
 (0)