Skip to content

Context Separation Issue #2613

Open
Open
@timon-roenisch-cpi

Description

@timon-roenisch-cpi

Describe the bug

Contexts are not kept separated after upgrading graphql-modules to any version above 2.2.0. In earlier versions, each request context remains distinct. Upgrading causes the context being overwritten by a parallel request.

To Reproduce
Steps to reproduce the behavior:

  1. Implement a resolver that executes additional functionality which takes some time. Can be simulated with a timeout.
  2. Call an injected service which uses the @ExecutionContext() and returns an identifiable value from that context.
  3. Send at least two parallel requests.

Expected behavior

The contexts should remain the same during the whole runtime of the resolving function.

Environment:

  • "graphql-modules": "2.2.1" and above, including 3.0.0
  • NodeJS: 22.14

Code example

minimal-example.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions