LLM-Generated GraphQL Mocks Arrive at Airbnb and Expedia, While the Spec Lags Behind
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.
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.