---
title: "Migrating from Apollo Tooling to GraphQL Codegen at Yelp"
description: "Yelp replaced the deprecated apollo-tooling codegen with GraphQL Codegen across a 500+ package React/TypeScript monorepo without requiring developers to change imports or queries."
url: "https://swe.quest/articles/migrating-from-apollo-tooling-to-graphql-codegen-at-yelp-732b107d437979cc"
canonical: "https://engineeringblog.yelp.com/2026/07/migrating-to-graphql-codegen.html"
source: "Yelp Engineering"
published: "2026-07-16"
difficulty: "medium"
kind: "Case study"
reading_minutes: 11
tags: ["graphql","typescript","build-systems","refactoring","open-source"]
---

# Migrating from Apollo Tooling to GraphQL Codegen at Yelp

A post on [Yelp Engineering](https://swe.quest/sources/yelp.md), published 2026-07-16, 11 min read, Case study. Original: [https://engineeringblog.yelp.com/2026/07/migrating-to-graphql-codegen.html](https://engineeringblog.yelp.com/2026/07/migrating-to-graphql-codegen.html)

## Summary

Yelp replaced the deprecated apollo-tooling codegen with GraphQL Codegen across a 500+ package React/TypeScript monorepo without requiring developers to change imports or queries. Rather than adopting gql.tada or Codegen's native client preset, the team patched the typescript-operations plugin and near-operation-file preset to emit apollo-tooling-compatible output: per-operation file names, inlined enums and input types, plain \`T | null\` instead of Maybe/Exact wrappers, and field-only nested type names. The patches also fixed a concurrency problem where multiple processes regenerated shared fragments. The changes were upstreamed into GraphQL Codegen v6 in collaboration with its maintainer. The remaining few hundred type errors were fixed incrementally, with Claude's help, using a shrinking allowlist of packages still on the old tool.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [TypeScript](https://swe.quest/tags/typescript.md) (Languages)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Refactoring & migrations](https://swe.quest/tags/refactoring.md) (Engineering practices)
- [Open source](https://swe.quest/tags/open-source.md) (Engineering practices)

## Prerequisites

- GraphQL queries and fragments ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- TypeScript types ([easy posts on TypeScript](https://swe.quest/tags/typescript.md?difficulty=easy))
- Apollo Client
- JavaScript monorepos ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

GraphQL Codegen, apollo-tooling, Apollo Client, gql.tada, near-operation-file, typescript-operations, Yelp

## Related posts

- [Migrating a Large Flow Monorepo to TypeScript](https://swe.quest/articles/migrating-a-large-flow-monorepo-to-typescript-750b673839e64549.md): Yelp Engineering · 2026-08-04 · Medium · 11 min read · TypeScript, Refactoring & migrations, JavaScript, Type systems, Build systems
  Yelp migrated 1.4 million lines of Flow-typed JavaScript in a Lerna monorepo to TypeScript over three and a half years, converting one package at a time without ever bulk-disabling typechecking.
- [Third Time's the Charm: Deprecating KAWS](https://swe.quest/articles/third-time-s-the-charm-deprecating-kaws-d0552afdae392f12.md): Artsy Engineering · 2022-05-09 · Medium · 11 min read · Refactoring & migrations, GraphQL, Microservices, Deployment
  Artsy retired KAWS, a standalone Node.js/Mongo/TypeGraphQL service that stored artwork "collections" as Elasticsearch queries, and folded it into its main Rails API, Gravity.
- [Medium Android App — Migrating from Apollo Kotlin 3 to 4: Lessons Learned](https://swe.quest/articles/medium-android-app-migrating-from-apollo-kotlin-3-to-4-lessons-learned-a49ead8ba5186c2f.md): Medium Engineering · 2025-10-06 · Medium · 7 min read · GraphQL, Mobile, Caching, Java & JVM, Refactoring & migrations
  Upgrading Medium's Android app from Apollo Kotlin 3 to 4 surfaced CacheMissException errors across every watch()-based UI, because v4 delivers fetch errors through ApolloResponse instead of throwing or silently dropping them.
- [How pg\_graphql works](https://swe.quest/articles/how-pg-graphql-works-70dff1dd9d5a0c27.md): Supabase · 2024-01-24 · Medium · 9 min read · GraphQL, PostgreSQL, Rust, Compilers
  pg\_graphql is a Rust-based Postgres extension that reflects the SQL schema as a GraphQL schema and serves queries through a \`graphql.resolve\` SQL function, with no separate server.
- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
