Change8

Migrating to Apollo Client @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.1

Version @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.1 introduces 1 breaking change. This guide details how to update your code.

Released: 7/18/2025

1
Breaking Changes
1
Migration Steps
1
Affected Symbols

⚠️ Check Your Code

If you use any of these symbols, you need to read this guide:

gql

Breaking Changes

Issue #1

Export of `gql` was removed from `@apollo/client/react`. Code importing `gql` from that entrypoint will break. Update imports to `@apollo/client` instead.

Migration Steps

  1. 1
    Replace any `import { gql } from '@apollo/client/react'` with `import { gql } from '@apollo/client'`.

Release Summary

The `gql` export was removed from `@apollo/client/react`; import it from `@apollo/client` instead.

Need More Details?

View the full release notes and all changes for Apollo Client @apollo/client-codemod-migrate-3-to-4@1.0.0-rc.1.

View Full Changelog