Skip to content

Commit f0023f1

Browse files
authored
Fix @semanticNonNullField argument name in doc (apollographql#5828)
1 parent 1697598 commit f0023f1

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
@@ -249,7 +249,7 @@ extend schema @link(
249249
)
250250

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

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

281281
## Migrate progressively with `@ignoreErrors`

0 commit comments

Comments
 (0)