Skip to content

Commit cd9a06f

Browse files
robrichardyaacovCR
authored andcommitted
if: Boolean! = true
1 parent 856568b commit cd9a06f

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

spec/Section 3 -- Type System.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,7 +2173,7 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")
21732173
```graphql
21742174
directive @defer(
21752175
label: String
2176-
if: Boolean
2176+
if: Boolean! = true
21772177
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
21782178
```
21792179

@@ -2202,9 +2202,9 @@ fragment someFragment on User {
22022202

22032203
#### @defer Arguments
22042204

2205-
- `if: Boolean` - When `true`, fragment _should_ be deferred. When `false`,
2206-
fragment will not be deferred and data will be included in the initial
2207-
response. If omitted, defaults to `true`.
2205+
- `if: Boolean! = true` - When `true`, fragment _should_ be deferred. When
2206+
`false`, fragment will not be deferred and data will be included in the
2207+
initial response. If omitted, defaults to `true`.
22082208
- `label: String` - May be used by GraphQL clients to identify the data from
22092209
responses and associate it with the corresponding defer directive. If
22102210
provided, the GraphQL Server must add it to the corresponding payload. `label`
@@ -2214,7 +2214,11 @@ fragment someFragment on User {
22142214
### @stream
22152215

22162216
```graphql
2217-
directive @stream(label: String, initialCount: Int = 0, if: Boolean) on FIELD
2217+
directive @stream(
2218+
label: String
2219+
if: Boolean! = true
2220+
initialCount: Int = 0
2221+
) on FIELD
22182222
```
22192223

22202224
The `@stream` directive may be provided for a field of `List` type so that the
@@ -2234,15 +2238,14 @@ query myQuery($shouldStream: Boolean) {
22342238

22352239
#### @stream Arguments
22362240

2237-
- `if: Boolean` - When `true`, field _should_ be streamed. When `false`, the
2238-
field will not be streamed and all list items will be included in the initial
2239-
response. If omitted, defaults to `true`.
2241+
- `if: Boolean! = true` - When `true`, field _should_ be streamed. When `false`,
2242+
the field will not be streamed and all list items will be included in the
2243+
initial response. If omitted, defaults to `true`.
22402244
- `label: String` - May be used by GraphQL clients to identify the data from
22412245
responses and associate it with the corresponding stream directive. If
22422246
provided, the GraphQL Server must add it to the corresponding payload. `label`
22432247
must be unique label across all `@defer` and `@stream` directives in a
22442248
document. `label` must not be provided as a variable.
2245-
22462249
- `initialCount: Int` - The number of list items the server should return as
22472250
part of the initial response. If omitted, defaults to `0`. A field error will
22482251
be raised if the value of this argument is less than `0`.

0 commit comments

Comments
 (0)