Skip to content

Commit cd8afbd

Browse files
committed
1 parent 9aa8b03 commit cd8afbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nullability/v0.1/nullability-v0.1.graphql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Control over list items is done using the `level` argument:
2424
```graphql
2525
type User {
2626
# friends is nullable but friends[0] is null only on errors
27-
friends @nullOnlyOnError(level: 1)
27+
friends: [User] @nullOnlyOnError(level: 1)
2828
}
2929
```
3030
@@ -46,7 +46,7 @@ By default, the first GraphQL error throws and fails the whole response.
4646
starting at 0 if there is no list.
4747
If level is null, the modifier is applied to all levels
4848
"""
49-
directive @catch(if: Boolean! = true, to: CatchTo! = RESULT, level: Int = null) repeatable on FIELD
49+
directive @catch(if: Boolean! = true, to: CatchTo! = RESULT, level: Int = null) repeatable on FIELD | SCHEMA
5050

5151
enum CatchTo {
5252
NULL,

0 commit comments

Comments
 (0)