Skip to content

Commit 1d2e7e4

Browse files
robrichardyaacovCR
authored andcommitted
if: Boolean! = true
1 parent 1f55915 commit 1d2e7e4

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
@@ -2174,7 +2174,7 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")
21742174
```graphql
21752175
directive @defer(
21762176
label: String
2177-
if: Boolean
2177+
if: Boolean! = true
21782178
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
21792179
```
21802180

@@ -2203,9 +2203,9 @@ fragment someFragment on User {
22032203

22042204
#### @defer Arguments
22052205

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

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

22212225
The `@stream` directive may be provided for a field of `List` type so that the
@@ -2235,15 +2239,14 @@ query myQuery($shouldStream: Boolean) {
22352239

22362240
#### @stream Arguments
22372241

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

0 commit comments

Comments
 (0)