We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Params with @Args decorator contain all arguments, not just arguments defined in target type.
@Args
type-graphql/src/helpers/types.ts
Line 105 in 59ef256
To Reproduce
@ArgsType() class TestArgs { @Field(() => String) foo: string @Field(() => String) bar: string } @Resolver() class TestResolver { @Mutation(() => String) test( @Arg('extra') extra: string, @Args('test') test: TestArgs ) { console.log(test) return extra } }
Expected behavior
{ "foo": "value", "bar": "value" }
Current behavior
{ "foo": "value", "bar": "value", "extra": "value" }
Enviorment (please complete the following information): Every environment, all package versions
The text was updated successfully, but these errors were encountered:
Partially related to #263 but in that case it's working as designed - you shouldn't mix the two ways of registering args.
If you need to add extra argument, just extend TestArgs class.
extra
TestArgs
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Params with
@Args
decorator contain all arguments, not just arguments defined in target type.type-graphql/src/helpers/types.ts
Line 105 in 59ef256
To Reproduce
Expected behavior
Current behavior
Enviorment (please complete the following information):
Every environment, all package versions
The text was updated successfully, but these errors were encountered: