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
When accessing the this on the resolve method helper within @Subscription in graphql it does not access the DI services being injected into the constructor of that resolver
Is there an existing issue for this?
Current behavior
When accessing the
this
on the resolve method helper within@Subscription
in graphql it does not access the DI services being injected into the constructor of that resolverMinimum reproduction code
#354
Steps to reproduce
@Subscription
decorator in any method of your created resolver.resolve method
in the@Subscription
decorator and in the first argument put thethis
with type instance of your resolver class.this
instance reference.Expected behavior
You should be able to use the methods of your injected services in the
this
reference in theresolve
method in@Subscription
Package version
12.1.1
Graphql version
graphql
: 16.8.1apollo-server-express
: 3.13.0apollo-server-fastify
:NestJS version
10.3.0
Node.js version
18.17.1
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: