Skip to content

Commit 11542f0

Browse files
committed
re-order arguments
1 parent 2f36b5e commit 11542f0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spec/Section 3 -- Type System.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2177,8 +2177,8 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")
21772177

21782178
```graphql
21792179
directive @defer(
2180-
label: String
21812180
if: Boolean! = true
2181+
label: String
21822182
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
21832183
```
21842184

@@ -2221,9 +2221,9 @@ fragment someFragment on User {
22212221

22222222
```graphql
22232223
directive @stream(
2224-
label: String
2225-
if: Boolean! = true
22262224
initialCount: Int = 0
2225+
if: Boolean! = true
2226+
label: String
22272227
) on FIELD
22282228
```
22292229

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

22502250
#### @stream Arguments
22512251

2252+
- `initialCount: Int` - The number of list items the service should return
2253+
initially. If omitted, defaults to `0`. A field error will be raised if the
2254+
value of this argument is less than `0`.
22522255
- `if: Boolean! = true` - When `true`, field _should_ be streamed (see related
22532256
note below). When `false`, the field must not be streamed and all list items
22542257
must be initially included. Defaults to `true` when omitted.
@@ -2258,9 +2261,6 @@ query myQuery($shouldStream: Boolean! = true) {
22582261
this label in the corresponding pending object within the result. The `label`
22592262
argument must be unique across all `@defer` and `@stream` directives in the
22602263
document.
2261-
- `initialCount: Int` - The number of list items the service should return
2262-
initially. If omitted, defaults to `0`. A field error will be raised if the
2263-
value of this argument is less than `0`.
22642264

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

0 commit comments

Comments
 (0)