You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using a basic module here, the REST endpoint works properly with the durable service however the Graphql Resolver never causes the ContextIdFactory documented here to executes, thus always creates a new service each call. Durable providers are documented here: durable-providers
instanceCounter should increment each time the durable resolver is called, however it stays at 1 because the service is recreated each request. The controller works just fine incrementing the counter.
Package version
10.1.3
Graphql version
graphql: 15.6.1
NestJS version
9.1.4
Node.js version
16.15.0
In which operating systems have you tested?
macOS
Windows
Linux
Other
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Current behavior
When trying to use a durable provider, the ContextIdFactory never gets call when using a Graphql resolver
Minimum reproduction code
https://stackblitz.com/edit/nestjs-typescript-starter-wrfmxw?file=src%2Fdurable.module.ts,package.json,src%2Fcontext-id-strategy.ts,src%2Fmain.ts
Steps to reproduce
Using a basic module here, the REST endpoint works properly with the
durable
service however the Graphql Resolver never causes the ContextIdFactory documented here to executes, thus always creates a new service each call. Durable providers are documented here: durable-providersExpected behavior
instanceCounter
should increment each time thedurable
resolver is called, however it stays at 1 because the service is recreated each request. The controller works just fine incrementing the counter.Package version
10.1.3
Graphql version
graphql
: 15.6.1NestJS version
9.1.4
Node.js version
16.15.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: