-
Notifications
You must be signed in to change notification settings - Fork 32
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
Pass default argument and input values to resolvers #59
Comments
Thank you for reporting the issue, this is a known issue and I will make sure the team sees this. |
@tinnou Any update on this. |
I also have a problem with defaultValue. So I get this: {
"description": "Input type of myMutation.",
"inputFields": [
{
"defaultValue": null,
"description": "foo description.",
"name": "foo"
}
]
} Instead of this: {
"description": "Input type of myMutation.",
"inputFields": [
{
"defaultValue": "bar",
"description": "foo description.",
"name": "foo"
}
]
} |
@tinnou - ping. any word on when this bug might be addressed? |
This bug has not been prioritized yet. Stay tuned. |
Any updates on this topic? |
I would love to be able to use defaults, that is certain!! |
@tinnou ping. any word on if this bug has been prioritized as yet? |
Any update? |
I believe users expect a public product by Amazon to be spec compliant. |
bumping as this is still an issue several years later, is this on the backlog to fix? |
Nearly 4 years later and AppSync still doesn't forward default arguments and inputs to resolvers, is there some unexpected complexity to implementing this or has it just not been prioritized? |
We have run into this, and requesting that the fix be prioritized. |
Is this problem present with JS resolvers as well? Because if it is then I would stay away from AppSync. In my eyes presence of this single problem is enough to qualify entire product as immature. Not being able to fix it in 4 years tells me the product never be mature. I spent last 2 days evaluating AppSync for an uprooting project. Now I doubt I would use it :( |
AWS AppSync allows to define default values in schema like that
or that
But either way when the value is not explicitly defined, the default value is not passed to the resolver.
The default argument and input values defined in the schema should be passed to the resolvers.
As a workaround I'm forced to define default values at the schema level and at the resolver level. This leads to redundancy and to possible out of sync default values.
PS: In the GraphQL specs
See Also https://stackoverflow.com/questions/51302462/how-to-pass-default-graphql-arguments-to-aws-appsync-resolver
The text was updated successfully, but these errors were encountered: