Skip to content

Commit 44b17fa

Browse files
committed
Introduce graphql-sock
1 parent c33f49b commit 44b17fa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ For a client to take advantage of the Semantic Nullability proposal, it must hav
1818
- [Nullability](https://www.apollographql.com/docs/kotlin/advanced/nullability/) overall documentation for nullability in Apollo Kotlin.
1919
- 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`:
2020
- 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.
2222

2323
## GraphQL Servers
2424

@@ -35,7 +35,9 @@ In some cases clients or servers that don't have built-in support for Semantic N
3535

3636
- [`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.
3737
- 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!
3941

4042
## Works in Progress
4143

0 commit comments

Comments
 (0)