Skip to content

Commit 8168fc0

Browse files
authored
Update nullability.mdx (#6386)
Fix up `levels` syntax for `\@catch(to:` directive example
1 parent b064861 commit 8168fc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/advanced/nullability.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ For fields of `List` type, `@catch` applies only to the first level. If you need
179179
query GetUser {
180180
user {
181181
# map friends[i] to FieldResult
182-
friends @catch(to: RESULT, level: 1)
182+
friends @catch(to: RESULT, levels: [1])
183183
}
184184
}
185185
```
@@ -358,4 +358,4 @@ If your schema is configured with `@catchByDefault(to: NULL)`, you'll also need
358358
query GetFoo {
359359
foo @catch(to: THROW)
360360
}
361-
```
361+
```

0 commit comments

Comments
 (0)