Closed andre-byrne closed 1 month ago
Thank you for taking the time to submit your report! From the looks of it, this could be better discussed on our Discord. If you haven't already, please join here and send a new post in the # 🐈 nestjs-help forum. Make sure to include a link to this issue, so you don't need to write it all again. We have a large community of helpful members, who will assist you in getting this to work.
Is there an existing issue for this?
Current behavior
When I create a new resolver by extending an existing resolver, fields that had
Args
decorators do not have the corresponding graphql params. For example, given:When I extend the resover like this,
Then I expect to be able to query posts like this
Currently this is an error:
Minimum reproduction code
https://github.com/andre-byrne/args-not-inherited-example/tree/main
Steps to reproduce
npm i
npm run start
You will see that the
blog
field does not permit thelanguage
argument.Expected behavior
When I create a new resolver by extending an existing resolver, I expect all the fields from the parent class to be present in my new resolver just as they were in the parent. If the parent has a
posts
field with alanguage
argument, then the child should have aposts
field with alanguage
argument.Package version
12.2.0
Graphql version
NestJS version
10.3.2
Node.js version
20.14.0
In which operating systems have you tested?
Other
No response