tql
tql copied to clipboard
A GraphQL query builder for TypeScript. Avoid the pain of codegen.
Automatically check for the latest version when running the CLI.
To help promote the library and better integrate with the ecosystem we should provide a [graphql-code-generator](https://www.graphql-code-generator.com/docs/custom-codegen/write-your-plugin) plugin interface to out code generation pipeline.
We should implement the [beginnings of schema definition support](https://ghostdogpr.github.io/caliban/docs/schema.html) by code-generating a `Schema` class that exposes the following static properties seen in the example. Runtime clients can use the metadata...
Possible API: // or class-based API ```typescript const userName = new Fragment({ name: 'UserDetails', on: 'User', selection: (t) => [ t.name(t => [ t.first(), t.last() ]) ] }) // higher-level...
- Node.js CPU and memory usage event-loop delay - Operations per second (using benchmark.js/benny) - Against other "fluent" GraphQL libraries
[Gqty (formerly gqless) takes the approach of rendering straight to strings](https://gqty.dev/docs/intro/how-it-works#how-fast-is-it) and skipping AST construction altogether.
Might be nice to offer an integration with [Fig](https://fig.io/docs/getting-started) for VSCode-style terminal autocompletion ([distribution](https://fig.io/docs/tutorials/building-internal-clis#share-my-spec-with-my-team) seems to be as easy as storing a new .js module in `~/.fig/autocomplete`; it looks like...
We should have a GitHub Action that takes a GraphQL schema reference and git ref and generates a new version of the SDK.