From Back-to-Front, using #GraphQL Codegen for 10X DX
summary
Argues that letting the database drive types gives roughly 10x DX by generating end-to-end types: uses Postgres schema (generated by ChatGPT for an elephant-zoo ticket model), tracks tables and FKs in Hasura to expose a GraphQL API, then runs GraphQL Codegen to emit front-end types. Demo builds a shows/tickets/orders schema, hooks it to a running Postgres, confirms GraphQL introspection, and produces TypeScript types in minutes — the pipeline works.
AI-written summary · about
