Is there an existing issue for this?
Current behavior
Multiple GraphQL Resolvers with Same Method Names but Different Field Names Cause Schema Error
Minimum reproduction code
https://github.com/vietthang/nestjs-graphql-issue-reproduce
Steps to reproduce
- npm install
- npm start
- The application throws the following error:
Error: User.lastName defined in resolvers, but not in schema
Expected behavior
The resolvers should be able to coexist since they resolve different fields (firstName and lastName) through the name property in their respective @ResolveField decorators.
Package version
13.0.4
Graphql version
graphql: 16.8.1
apollo-server-express: 3.13.0
NestJS version
11.0.12
Node.js version
20.18.1
In which operating systems have you tested?
Other
No response