quality_assurance · travel · workflow

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.

How it works
Common implementation structure
How this type of workflow is generally built, generalized across documented cases — not tied to any one vendor's stack. Click any stage to read what happens there. Specific products that implement these stages appear in “Tools commonly seen” below.
Stage 1 · Engineer adds @generateMock directive
Engineers add the @generateMock directive to any GraphQL operation, fragment, or field to initiate automated mock data generation.
Tools used
NiobeGemini 2.5 Pro@generateMock@respondWithMock
Outcome

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.

Results
Volumeover 700
Source

https://medium.com/airbnb-engineering/graphql-data-mocking-at-scale-with-llms-and-generatemock-30b380f12bd6

How we source this →

Grounding & classification
Source type: technical build writeup
19 fields verified against source quotes.
code generationcontent generationknowledge basebuilder submittedmetric backednamed customerproduction runtime claimedtools describedworkflow describedsoftwaretravelemployee productivitythroughput increasetime savedtechnical build writeupquality assuranceagentic task execution