Bug Fixes
-
HTTP Error Handling: Fixed regression from v6 to v7 where HTTP 4xx/5xx responses would not include GraphQL errors from response body in
ClientError(#1457, closes #1281)- Response body is now parsed before checking HTTP status
- Users can access GraphQL errors via
error.response.errorseven with non-2xx status codes - Common use case: authentication errors (422), server errors (500)
-
graphql-codegen Compatibility: Added support for
TypedDocumentStringfrom@graphql-codegenwhen usingdocumentMode: 'string'(#1456, closes #1453)- Handles boxed String objects created by TypedDocumentString class
- Normalizes document input to prevent crashes when passing to GraphQL operations