Skip to content

[batch-delegate] Error paths use their batched indices #2950

@mjbcopland

Description

@mjbcopland

Describe the bug

When we batch-delegate a request, error paths use their index in the batched result rather than in the original result.

To Reproduce

Construct a query which batch-delegates the same error at two different paths. See #2951.

Expected behavior

The error is relocated to each corresponding path in the delegating query.

Environment

  • OS: N/A
  • @graphql-tools/...: master
  • NodeJS: LTS

Metadata

Metadata

Assignees

No one assigned

    Labels

    stage/2-failing-testA failing test was created that describes the issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions