Migrating to Apollo Client @apollo/client@4.0.7
Version @apollo/client@4.0.7 introduces 1 breaking change. This guide details how to update your code.
Released: 9/30/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:
GraphQLWsLinkBreaking Changes
●Issue #1
`GraphQLWsLink` no longer includes the `operationType` field in the payload it sends. Servers or middleware that relied on this field will receive payloads without it, potentially causing errors. To fix, update the server to not require `operationType` or manually add the field in a custom link.
Migration Steps
- 1If your GraphQL server expects `operationType` in the WebSocket payload, modify the server to ignore the missing field or add a custom link that injects `operationType` back into the payload.
Release Summary
Patch release removes the `operationType` field from `GraphQLWsLink` payloads, fixing related bugs but may require server adjustments.
Need More Details?
View the full release notes and all changes for Apollo Client @apollo/client@4.0.7.
View Full Changelog