Skip to content

Commit e7cfcf0

Browse files
committed
re-order arguments
1 parent f3a30f3 commit e7cfcf0

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
@@ -2203,8 +2203,8 @@ scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")
22032203

22042204
```graphql
22052205
directive @defer(
2206-
label: String
22072206
if: Boolean! = true
2207+
label: String
22082208
) on FRAGMENT_SPREAD | INLINE_FRAGMENT
22092209
```
22102210

@@ -2247,9 +2247,9 @@ fragment someFragment on User {
22472247

22482248
```graphql
22492249
directive @stream(
2250-
label: String
2251-
if: Boolean! = true
22522250
initialCount: Int = 0
2251+
if: Boolean! = true
2252+
label: String
22532253
) on FIELD
22542254
```
22552255

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

22762276
#### @stream Arguments
22772277

2278+
- `initialCount: Int` - The number of list items the service should return
2279+
initially. If omitted, defaults to `0`. A field error will be raised if the
2280+
value of this argument is less than `0`.
22782281
- `if: Boolean! = true` - When `true`, field _should_ be streamed (see related
22792282
note below). When `false`, the field must not be streamed and all list items
22802283
must be initially included. Defaults to `true` when omitted.
@@ -2284,9 +2287,6 @@ query myQuery($shouldStream: Boolean! = true) {
22842287
this label in the corresponding pending object within the result. The `label`
22852288
argument must be unique across all `@defer` and `@stream` directives in the
22862289
document.
2287-
- `initialCount: Int` - The number of list items the service should return
2288-
initially. If omitted, defaults to `0`. A field error will be raised if the
2289-
value of this argument is less than `0`.
22902290

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

0 commit comments

Comments
 (0)