Skip to content

Commit 65dd7a4

Browse files
authored
Fix examples in Migrating to v5 doc (#6610)
1 parent 12b46ab commit 65dd7a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/migration/5.0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ type User {
6464
}
6565

6666
# or if you don't own the schema, use extensions
67-
extend type User @semanticNonNullField(name: String)
67+
extend type User @semanticNonNullField(name: "email")
6868
```
6969

7070
The client can then decide how to handle errors with `@catch`:
@@ -77,7 +77,7 @@ query GetUser {
7777
# generated as `Result<String, Error>`
7878
email @catch(to: RESULT)
7979
# generated as `String`, throws if there is an error
80-
email @catch(to: NULL)
80+
email @catch(to: THROW)
8181
}
8282
}
8383
```

0 commit comments

Comments
 (0)