diff --git a/index.ts b/index.ts index 014bbf9f..cb0f03f6 100644 --- a/index.ts +++ b/index.ts @@ -1,3 +1,6 @@ +// https://github.com/graphql/dataloader/issues/249 +import 'setimmediate'; + export { createZimbraSchema, schema } from './src/schema/schema'; export { ZimbraBatchClient } from './src/batch-client'; export { LocalBatchLink } from './src/apollo/local-batch-link'; diff --git a/package.json b/package.json index 23fbb57d..823893ac 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,8 @@ "graphql": "^15.8.0", "graphql-tools": "^8.2.9", "lodash": "^4.17.21", - "mitt": "^3.0.0" + "mitt": "^3.0.0", + "setimmediate": "^1.0.5" }, "devDependencies": { "@babel/cli": "^7.17.10",