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

Default value for input argument not bound to schema #321

Closed
beneshed opened this issue Feb 16, 2020 · 2 comments
Closed

Default value for input argument not bound to schema #321

beneshed opened this issue Feb 16, 2020 · 2 comments

Comments

@beneshed
Copy link

I have a schema like the following

enum FooEnum {
   FOO
   BAR
}
input FooBarInput {
    foo: FooEnum! = FOO
}

extend type mutation {
foo(input: FooBarInput): Boolean!
}

But when calling the mutation FOO is not passed as an argument and the resolver fails

@rafalp
Copy link
Contributor

rafalp commented Feb 16, 2020

Duplicate of #293

@rafalp rafalp marked this as a duplicate of #321 Feb 16, 2020
@rafalp rafalp closed this as completed Feb 16, 2020
@rafalp rafalp marked this as a duplicate of #293 Feb 16, 2020
@rafalp
Copy link
Contributor

rafalp commented Feb 16, 2020

Ok, not exact duplicate, but same source and same fix, so I've updated #293 instead to track both of those. ;)

Thanks!

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

No branches or pull requests

2 participants