You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ For a client to take advantage of the Semantic Nullability proposal, it must hav
18
18
-[Nullability](https://www.apollographql.com/docs/kotlin/advanced/nullability/) overall documentation for nullability in Apollo Kotlin.
19
19
- Apollo Client, URQL, `fetch()` and `fetch()`-based clients such as [graffle](https://github.com/jasonkuhrt/graffle) that give access to the response's `data` and `errors`:
20
20
- can support "throw on field error" via the `graphql-toe` npm module; see "Standalone Tools" below.
21
-
- can, if they're using "throw on field error", treat semantic non-null types as if they were strict non-null types (e.g. when integrating with GraphQL Code Generator).
21
+
- can convert semantic nullability schema into traditional schema (e.g. for code generation / legacy tooling integration) using the `graphql-sock` npm module; see "Standalone Tools" blow.
22
22
23
23
## GraphQL Servers
24
24
@@ -35,7 +35,9 @@ In some cases clients or servers that don't have built-in support for Semantic N
35
35
36
36
-[`graphql-toe`](https://github.com/graphile/graphql-toe) - converts a GraphQL response containing data+errors into a single data tree where fields that have an associated error will throw when read from.
37
37
- Provides granular error handling using `try/catch` or React error boundaries or similar.
38
-
- This means _semantic_ non-null types may be treated as if they were _strict_ non-null types for type generation - fewer null checks required!
38
+
- Means _semantic_ non-null types may be treated as if they were _strict_ non-null types for type generation - see `graphql-sock` below.
39
+
-[`graphql-sock`](https://github.com/graphile/graphql-sock) - takes a semantic nullability schema SDL and converts it into a traditional SDL either by stripping semantic-non-nulls (`semantic-to-nullable`), or by converting them to strict non-nulls (`semantic-to-strict`).
40
+
- When combined with `graphql-toe`, use `semantic-to-strict` for type generation and fewer null checks will be required!
0 commit comments