The subgraph is generated and the schema is merged alright into the super graph. But when querying the @ResolveField ones they return null and the resolver is never hit.
I have been running a debug on both the gateway and the service, I get nothing particularly useful from the error on the gateway.
However if I turn the interface resolver into an abstract resolver like:
Is there an existing issue for this?
Current behavior
This interface:
Has the following resolver:
however when I have an entity implement the interface:
The subgraph is generated and the schema is merged alright into the super graph. But when querying the
@ResolveField
ones they return null and the resolver is never hit. I have been running a debug on both the gateway and the service, I get nothing particularly useful from the error on the gateway.However if I turn the interface resolver into an abstract resolver like:
and create a subject resolver like:
Then it works as intended although not be resolving the interface but by extending the subject type, which is not the intention.
I don't know if this is intentional, but it seems to me like a bug.
Minimum reproduction code
nan
Steps to reproduce
No response
Expected behavior
I expect that when I create an interface and an interface resolver, it will be hit when querying.
Package version
2.2.0
Graphql version
NestJS version
9.1.4
Node.js version
16.15.0
In which operating systems have you tested?
Other
No response