-
-
Notifications
You must be signed in to change notification settings - Fork 112
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
Library does not support ! in GraphQL schema during the java classes generation #3
Comments
@PavelSusloparov, |
@PavelSusloparov, I have one idea.
Please let me know what you think. |
Tried suggested approach, for some reason it the validation is not picked up by the service.
If the query is defined in
and the resolver looks like
The app starts without errors and when I run
it returns success without any errors
However, I expect the error back. |
Actually, I did it wrong. With validator here, I have the thing working.
Thanks to https://www.baeldung.com/javax-validation @kobylynskyi , yes I believe that is the good approach to go with. |
Done in 1.2.1 |
Describe the bug
During the java classes generation, all of the fields are nullable fields
To Reproduce
Steps to reproduce the behavior:
Run
./gradlew graphqlCodegen
Check the generated classes. Fields have no difference between nullable and not nullable.
Expected behavior
Nullable fields should be assigned null
Not nullable fields should be the same as of now.
The text was updated successfully, but these errors were encountered: