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

Nonnull ignored in mutation parameters in 0.9.8 #165

Closed
stoyandekov7 opened this issue Aug 22, 2018 · 0 comments
Closed

Nonnull ignored in mutation parameters in 0.9.8 #165

stoyandekov7 opened this issue Aug 22, 2018 · 0 comments

Comments

@stoyandekov7
Copy link

stoyandekov7 commented Aug 22, 2018

In 0.9.8, it appears if you want to make a mutation argument mandatory, you have to use @GraphQLNotNull. Any other annotation (like javax.annotation.Nonnull) is ignored.

@GraphQLMutation
public User getUser(@Nonnull String username) { //this should make username non-nullable
}
@kaqqao kaqqao closed this as completed in ad27b1d Aug 29, 2018
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

1 participant