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

Fixes for resolvers plugins: override optional declaration of args types #2122

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

dotansimha
Copy link
Owner

When args field has default value, we generate by default the Args type with optional and Maybe, because typescript-operations uses it to set the variables/arguments - and if it has a default value - then it's fine that it's optional.
But, for typescript-resolvers, we need to override this behaviour because we would like to tell the backend developers that this field will have a value (because it has a default).

Related: #2064

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

Successfully merging this pull request may close these issues.

1 participant