@apollo/client@4.0.7
Breaking Changes📦 apollo-client
⚠ 1 breaking🐛 1 fixes🔧 1 symbols
Summary
Patch release removes the `operationType` field from `GraphQLWsLink` payloads, fixing related bugs but may require server adjustments.
⚠️ Breaking Changes
- `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
- If 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.
🐛 Bug Fixes
- Removed the unnecessary `operationType` field from the payload sent by `GraphQLWsLink`, fixing issues where the field caused incorrect behavior.
🔧 Affected Symbols
GraphQLWsLink