A simple GraphQL Query Builder experiment.
__tests__
queries
- Domain specific Query API, e.g.UserQuery
mutations
- Same as above, but mutations.types
- TypeScript interfaces directly corresponding to GQL schema types, e.g.User
. Can be generated typedefs alsoGraphqlClient.ts
- GraphQL client + error handling. Can be any client, I use@urlq/core
here.QueryBuilder.ts
- Query Builder implementation and some TypeScript magic