Airbnb generates type-safe GraphQL mock data at scale using LLMs and @generateMock
Airbnb engineers spent significant time manually writing and maintaining GraphQL mock data that frequently drifted out of sync with evolving queries, and client engineers were blocked from iterating on frontend features while waiting for backend server implementations to be complete.
Airbnb engineers generated and merged over 700 mocks across iOS, Android, and Web using @generateMock, with engineers reporting significantly faster local development and no need to manually write or maintain mock data.
Frequently asked questions
What did this team achieve with this AI workflow?
Airbnb engineers generated and merged over 700 mocks across iOS, Android, and Web using @generateMock, with engineers reporting significantly faster local development and no need to manually write or maintain mock data.
What tools did this team use?
Niobe, Gemini 2.5 Pro, @generateMock, @respondWithMock.
What results were reported?
Mocks generated and merged: over 700; Local development speed: significantly sped up (source-reported, not independently verified).
How is this quality assurance AI workflow structured?
Engineer adds @generateMock directive → Hash-based change detection → Design snapshot generation → Context aggregation and LLM call → GraphQL schema validation → Self-healing retry on errors → Write mock JSON and source files.