<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq" -->

---
title: Apollo Mock: LLM-generated data for your Kotlin applications
description: Apollo Mock is a new tool that generates realistic fake data for GraphQL schemas using an LLM, once at generation time, then serves it via a lightweight...
canonical: https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Apollo Mock: LLM-generated data for your Kotlin applications | daily.dev
og:description: Apollo Mock is a new tool that generates realistic fake data for GraphQL schemas using an LLM, once at generation time, then serves it via a lightweight...
og:url: https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq
og:image: https://api.daily.dev/og/posts/vWm7xNJUq.png
og:image:alt: Apollo Mock: LLM-generated data for your Kotlin applications
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Apollo Mock: LLM-generated data for your Kotlin applications

**[Apollo Blog](https://daily.dev/sources/apollo)** · 3 min read · 0 upvotes · 0 comments

## Summary

Apollo Mock is a new tool that generates realistic fake data for GraphQL schemas using an LLM, once at generation time, then serves it via a lightweight GraphQL server for fast, deterministic testing without needing a finished backend. It works via a Gradle plugin for Kotlin projects, supports local Ollama models (no API key) or Anthropic's API for larger schemas, and preserves entity IDs across schema changes so re-running generation doesn't break existing test dependencies. A standalone CLI is available for non-Kotlin projects.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.apollographql.com/blog/apollo-mock-llm-generated-data-for-your-kotlin-applications>

## Questions this post answers

### How can I generate realistic mock data for a GraphQL schema without a finished backend?

Apollo Mock points at a GraphQL schema and uses an LLM to generate a full set of fake entities as JSON files on disk once, then serves them through a small GraphQL server so queries resolve fast and deterministically without needing an API key or model at request time. It supports a local Ollama model by default or Anthropic's API for larger, more nuanced schemas, and integrates via a Gradle plugin for Kotlin projects.

_daily.dev surfaces tooling like this for developers tired of hand-written fixtures drifting out of sync with their schema._

### Does regenerating mock data after a GraphQL schema change break existing entity ids used in tests?

No, re-running the generation task after a schema change keeps existing entities and their ids stable. Removed fields are dropped, newly added fields are filled in, and everything else is left untouched, which matters when other tests depend on those specific ids remaining constant across schema iterations.

_Track tooling nuances like stable id generation on daily.dev before they break your test suite._

## Similar posts on daily.dev

- [GraphQL Data Mocking at Scale with LLMs and @generateMock](https://daily.dev/posts/graphql-data-mocking-at-scale-with-llms-and-generatemock-2oogqvcb9) · Airbnb · 0 upvotes · 0 comments
- [Focus on the Feature, Not the Fixture: GenAI powered GraphQL mocks](https://daily.dev/posts/focus-on-the-feature-not-the-fixture-genai-powered-graphql-mocks-mnqartpob) · Expedia Group Tech · 0 upvotes · 0 comments
- [LLM-Generated GraphQL Mocks Arrive at Airbnb and Expedia, While the Spec Lags Behind](https://daily.dev/posts/llm-generated-graphql-mocks-arrive-at-airbnb-and-expedia-while-the-spec-lags-behind-ejqclk8gq) · InfoQ · 1 upvotes · 0 comments

---

Tags: [#llm](https://daily.dev/tags/llm), [#kotlin](https://daily.dev/tags/kotlin), [#graphql](https://daily.dev/tags/graphql)

[View this post on daily.dev](https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Apollo Mock: LLM-generated data for your Kotlin applications","url":"https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq"},"datePublished":"2026-09-29T18:34:38.606Z","dateModified":"2026-09-29T18:35:01.152Z","description":"Apollo Mock is a new tool that generates realistic fake data for GraphQL schemas using an LLM, once at generation time, then serves it via a lightweight...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ffe47f3b72aeb2aaabe75460074d1673?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ffe47f3b72aeb2aaabe75460074d1673?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Apollo Blog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Apollo Blog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/cb3bc4fd879a485cacd1cff99536c010","url":"https://daily.dev/sources/apollo"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"llm,kotlin,graphql","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Apollo Blog","item":"https://daily.dev/sources/apollo"},{"@type":"ListItem","position":3,"name":"Apollo Mock: LLM-generated data for your Kotlin applications"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/apollo-mock-llm-generated-data-for-your-kotlin-applications-vwm7xnjuq#faq","mainEntity":[{"@type":"Question","name":"How can I generate realistic mock data for a GraphQL schema without a finished backend?","acceptedAnswer":{"@type":"Answer","text":"Apollo Mock points at a GraphQL schema and uses an LLM to generate a full set of fake entities as JSON files on disk once, then serves them through a small GraphQL server so queries resolve fast and deterministically without needing an API key or model at request time. It supports a local Ollama model by default or Anthropic's API for larger, more nuanced schemas, and integrates via a Gradle plugin for Kotlin projects. daily.dev surfaces tooling like this for developers tired of hand-written fixtures drifting out of sync with their schema."}},{"@type":"Question","name":"Does regenerating mock data after a GraphQL schema change break existing entity ids used in tests?","acceptedAnswer":{"@type":"Answer","text":"No, re-running the generation task after a schema change keeps existing entities and their ids stable. Removed fields are dropped, newly added fields are filled in, and everything else is left untouched, which matters when other tests depend on those specific ids remaining constant across schema iterations. Track tooling nuances like stable id generation on daily.dev before they break your test suite."}}]}
```

