Having your cake and eating it too — GraphQL in Reason
summary
Argues that marrying GraphQL with Reason eliminates JSON parsing boilerplate and catches API mismatches at compile time by generating Reason types from GraphQL introspection. Shows a JSON-to-Reason generator and an editor workflow using graphql-ppx and TDgen to get autotypechecked queries, and an ocaml server using ocaml-graphql-server to enforce non-null contracts. Reports shipped production apps (money-handling mobile) with far fewer runtime JSON errors, notes gaps: ppx misses interfaces and custom scalars and server tooling is still young.
AI-written summary · about
chapters (7)
- 0:00Start
- 10:00Javascript Converters
- 15:22Graph Ql Resolver
- 21:48Editor Demo
- 24:42Extremely Reduced Latency
- 30:41Limitations of the Current Setup
- 31:28Syntax
related talks
40mHaving Your Cake and Eating It Too GraphQL in Reason
15mThe Right Size For GraphQL
32mFrom learning to thinking in GraphQL
47mRock-Solid Components with TypeScript and GraphQL
23mGraphQL in real life
30mGraphQL in the Era of React Server Components
43mGraphQL in the Era of Server Components
13mGraphQL for people who don’t need it
