Schema First, Code First, or Both? Adopting Schema First Development
summary
Expedia Group shifts from pure code-first to a hybrid that reviews SDL in a monorepo, runs GraphQL Inspector and graphql-eslint, then uses GraphQL Codegen to run a custom graph-kotlin-cen plugin that generates Kotlin types and interfaces for GraphQL Kotlin so the approved SDL drives implementation. The pipeline prevents divergence with generated resolver interfaces to catch signature mismatches and avoid overfetching, removes 3,000 lines of code and cuts schema-change merge time by about two days across 70 services and 1,000+ contributors.
AI-written summary · about
chapters (8)
- 0:00Introduction and context
- 2:00Defining approaches
- 5:07Inclusive schema design
- 8:22Ensuring quality and consistency
- 12:56Automating with code generation
- 17:46Solving implementation issues
- 22:09Benefits and summary
- 25:18Q&A and closing
related talks
27mThe Benefits of Code First Over Schema First in GraphQL
08mWhen (Not) To Create A GraphQL Server
49mMigrate your APIs to GraphQL: how? and why!
29mClosing the Loop: How GraphQL Gives Coding Agents Eyes on What Actually Matters
24mGoing GraphQL
20mKotlin and GraphQL
20mHumble GraphQL
47mSchema Design in the Age of AI: Pragmatic Patterns to Evolve and Ship Fast
