chore: update package dependencies and improve pub/sub iterator usage

- Updated various package dependencies in package-lock.json and package.json for enhanced stability and performance.
- Changed pub/sub iterator methods from `asyncIterator` to `asyncIterableIterator` in multiple schema files for better compatibility with the latest GraphQL subscriptions.
- Added `moduleResolution` option in tsconfig.json to support Node.js-style module resolution.
This commit is contained in:
2024-12-08 20:38:09 +07:00
parent 16f6f8a629
commit 9e6d62e4be
8 changed files with 266 additions and 1218 deletions

View File

@@ -101,8 +101,8 @@ export class Builder extends SchemaBuilder<SchemaBuilderOption> {
debounceDelay: 1000,
...subscribeOptionsFromIterator((name, context) => {
return context.isSubscription
? context.websocket.pubSub.asyncIterator(name)
: context.http.pubSub.asyncIterator(name)
? context.websocket.pubSub.asyncIterableIterator(name)
: context.http.pubSub.asyncIterableIterator(name)
}),
},
zod: {