Skip to content

async_hooks restricts to only Node.js usage #1697

@PabloSzx

Description

@PabloSzx

Right now GraphQL Modules uses a Node.js specific module async_hooks in /packages/graphql-modules/src/application/execution-context.ts, and that restricts the usage of GraphQL Modules to only Node.js, making it harder/impossible to be used in other environments like Deno or Cloudflare workers.

Workaround: In this repo I had to add a no-op for async_hooks to be able to include it in the Cloudflare workers environment

Describe the solution you'd like

Re-factor the current implementation to not require async_hooks

Describe alternatives you've considered

Ship an extra module that doesn't include the async_hooks usage.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions