@gleanql/codegen
v0.1.5
Published
Glean's schema codegen: introspection to schema model, branded types and graph accessors
Downloads
820
Maintainers
Readme
@gleanql/codegen
The schema generator for GleanQL — GraphQL without writing GraphQL. From a GraphQL schema (SDL or introspection) it generates:
- the schema model the compiler and runtime share,
- branded TypeScript types for every schema type — so API drift (a removed field, a tightened nullability) becomes a type error in your components,
- the typed
gleanaccessor your components read from.
You normally don't install this directly — the
@gleanql/vite
plugin runs it on every build from your schema.graphql.
Docs
Full documentation lives in the GleanQL repo.
MIT
