Skip to content

LLM-Generated GraphQL Mocks Arrive at Airbnb and Expedia, While the Spec Lags Behind

7.3 relevance
Score Breakdown
technical depth
8
novelty
8
actionability
7
community
6
strategic
6
personal
7

Scored daily by a customisable AI persona to surface the most relevant engineering leadership news.

LLM-generated GraphQL mocks from Expedia/Airbnb, relevant for API development and AI integration.

AI/ML infoq.com
LLM-Generated GraphQL Mocks Arrive at Airbnb and Expedia, While the Spec Lags Behind
Summary

Expedia Group open-sourced mockql-rs, a Rust CLI that uses an LLM to generate GraphQL mock responses at request time, joining Airbnb's build-time @generateMock directive and a GraphQL Foundation RFC that defines @mock on operations. The three approaches share the premise that a GraphQL selection set provides a bounded shape for LLMs to fill, inverting the typical failure mode where models struggle with structure but excel at populating it. mockql-rs runs as a standalone proxy, forwarding real backend fields while injecting LLM-generated data for annotated fields, enabling mixed live-and-mock responses without client SDK dependencies.

Author

Steef-Jan Wiggers

More from Steef-Jan Wiggers →