Skip to content

HttpBatchLink does not include the response in the context #2399

@Stonepaw

Description

@Stonepaw

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions