Skip to content

Commit

Permalink
Fix @semanticNonNullField argument name in doc (#5828)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoD committed Apr 19, 2024
1 parent 1697598 commit f0023f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/advanced/nullability.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ extend schema @link(
)

# mark User.name as semantic non-null
extend type User @semanticNonNullField(field: "name")
extend type User @semanticNonNullField(name: "name")
```

`name` is now a non-null Kotlin types:
Expand All @@ -275,7 +275,7 @@ Similarly to `@catch`, `@semanticNonNullField` supports a `levels` argument for
```graphql
# User.friends is generated a nullable
# User.friends[0], User.friends[1], User.friends[2], etc.. is generated a non-null
extend type User @semanticNonNullField(field: "friends", levels: [1])
extend type User @semanticNonNullField(name: "friends", levels: [1])
```

## Migrate progressively with `@ignoreErrors`
Expand Down

0 comments on commit f0023f1

Please sign in to comment.