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
I get this error: Error: Child.helloWorld defined in resolvers, but not in schema. Everything else works fine (queries and mutations are executed as expected) and everything is present in schema.
Workaround
One of the options is to set @Field to entity that is defined in @Resolver argument but in this way I'm not able to use @Args.
Is there an existing issue for this?
Current behavior
Given this code and assuming everything else is set up correctly (I can provide Graphql module config if necessary)
I get this error:
Error: Child.helloWorld defined in resolvers, but not in schema
. Everything else works fine (queries and mutations are executed as expected) and everything is present in schema.Workaround
One of the options is to set
@Field
to entity that is defined in@Resolver
argument but in this way I'm not able to use@Args
.Minimum reproduction code
https://github.com/zuffik/nestjs-schema-problem-repo/tree/main/src
Steps to reproduce
yarn
)yarn start:dev
)Expected behavior
I expect the application is able to recognize fields in any context.
Package version
12.0.9
Graphql version
graphql
: 16.8.1@nestjs/apollo
: 12.0.9NestJS version
10.2.7
Node.js version
20.8.0
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: