Describe the bug
HttpBatchLink does not include the response into the context. The HttpLink does include this information so there is a divergence between the behaviours for links that need to handle headers or other such information from the response.
To Reproduce
Steps to reproduce the behavior:
Add a simple link to observe the results from the HttpBatchLink and observe that the response does not exist in the operation context.
Expected behavior
The HttpLink and HttpBatchLink should act the same by adding the response into the context.
Environment:
- @angular/cli@20.3.15
- @angular/core@20.3.15
- @apollo/client@3.14.0
- apollo-angular@11.0.0
- graphql@16.11.0
- typescript@5.8.3
Additional context
Describe the bug
HttpBatchLink does not include the response into the context. The HttpLink does include this information so there is a divergence between the behaviours for links that need to handle headers or other such information from the response.
To Reproduce
Steps to reproduce the behavior:
Add a simple link to observe the results from the HttpBatchLink and observe that the response does not exist in the operation context.
Expected behavior
The HttpLink and HttpBatchLink should act the same by adding the response into the context.
Environment:
Additional context