Skip to content

Commit fecd9ca

Browse files
committed
re-order arguments
1 parent a5a488c commit fecd9ca

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/Section 3 -- Type System.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2334,8 +2334,8 @@ input UserUniqueCondition @oneOf {
23342334

23352335
```graphql
23362336
directive @defer(
2337-
label: String
23382337
if: Boolean! = true
2338+
label: String
23392339
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
23402340
```
23412341

@@ -2378,9 +2378,9 @@ fragment someFragment on User {
23782378

23792379
```graphql
23802380
directive @stream(
2381-
label: String
2382-
if: Boolean! = true
23832381
initialCount: Int = 0
2382+
if: Boolean! = true
2383+
label: String
23842384
) on FIELD
23852385
```
23862386

@@ -2406,6 +2406,9 @@ query myQuery($shouldStream: Boolean! = true) {
24062406

24072407
#### @stream Arguments
24082408

2409+
- `initialCount: Int` - The number of list items the service should return
2410+
initially. If omitted, defaults to `0`. A field error will be raised if the
2411+
value of this argument is less than `0`.
24092412
- `if: Boolean! = true` - When `true`, field _should_ be streamed (see related
24102413
note below). When `false`, the field must not be streamed and all list items
24112414
must be initially included. Defaults to `true` when omitted.
@@ -2415,9 +2418,6 @@ query myQuery($shouldStream: Boolean! = true) {
24152418
this label in the corresponding pending object within the result. The `label`
24162419
argument must be unique across all `@defer` and `@stream` directives in the
24172420
document.
2418-
- `initialCount: Int` - The number of list items the service should return
2419-
initially. If omitted, defaults to `0`. A field error will be raised if the
2420-
value of this argument is less than `0`.
24212421

24222422
Note: The ability to defer and/or stream parts of a response can have a
24232423
potentially significant impact on application performance. Developers generally

0 commit comments

Comments
 (0)