Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Thanks @BoD
  • Loading branch information
martinbonnin committed Nov 27, 2023
1 parent 9aa8b03 commit cd8afbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nullability/v0.1/nullability-v0.1.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Control over list items is done using the `level` argument:
```graphql
type User {
# friends is nullable but friends[0] is null only on errors
friends @nullOnlyOnError(level: 1)
friends: [User] @nullOnlyOnError(level: 1)
}
```
Expand All @@ -46,7 +46,7 @@ By default, the first GraphQL error throws and fails the whole response.
starting at 0 if there is no list.
If level is null, the modifier is applied to all levels
"""
directive @catch(if: Boolean! = true, to: CatchTo! = RESULT, level: Int = null) repeatable on FIELD
directive @catch(if: Boolean! = true, to: CatchTo! = RESULT, level: Int = null) repeatable on FIELD | SCHEMA

enum CatchTo {
NULL,
Expand Down

0 comments on commit cd8afbd

Please sign in to comment.