tql
tql copied to clipboard
A GraphQL query builder for TypeScript. Avoid the pain of codegen.
We should run the TypeScript type-checker on the generated output (Prettier already runs the parser). Relates to #46
From the README it is not immediately obvious how to build a type-safe SDK with this library/tool. Perhaps we should implement a separate CLI (`create-graphql-sdk`?) or command that drives this...
https://mikro-orm.io/docs/usage-with-js Relates to #27
Would be nice to publish to GitHub Package Registry as-well-as NPM for redundancy and ease-of-adoption.
- Unwrap `data` object (i.e so we don't have to do `data.hero...`) - HTTP Keep-alive by default - Persisted query support - Structured logging support - Exponential backoff retry -...
> Might be useful to have a comparison table between this and others, especially [npmjs.com/package/@graphql-codegen/client-preset](https://www.npmjs.com/package/@graphql-codegen/client-preset) which perhaps is the most popular option but suboptimal DevEx This would be good to...