Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@ResolveField identified as defined in resolver but not in schema #3294

Closed
2 of 4 tasks
sschneider-ihre-pvs opened this issue Aug 16, 2024 · 1 comment
Closed
2 of 4 tasks

Comments

@sschneider-ihre-pvs
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

with the latest version serving a graphql server might lead to an error showing up like

Error: Entity.someField defined in resolvers, but not in schema

so in 12.2.0 you get the error
in 12.0.2 it is all good and also correct since most of the time it is a field in that entity type.

Maybe it is introduced by some dependency upgrade or maybe straight from nestjs/graphql

Minimum reproduction code

null

Steps to reproduce

  1. add a field to a type in graphql schema first
  2. add a @ResolveField for that field in the resolver
  3. try to serve the server
  4. getting error that the field is defined in resolver but not in schema

Expected behavior

fields should be correctly regognized as defined in resolver and schema

Package version

12.2.0

Graphql version

graphql: 16.8.0

NestJS version

No response

Node.js version

No response

In which operating systems have you tested?

  • macOS
  • Windows
  • Linux

Other

No response

@kamilmysliwiec
Copy link
Member

Please provide a minimum reproduction repository (Git repository/StackBlitz/CodeSandbox project).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants