-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
GraphQL NullPointerException when running Quarkus project #17733
Comments
/cc @jmartisk, @phillip-kruger |
Hi @talbiislam96 . I think the problem is the Map. At the moment map is not supported (in graphQL). We have been discussing how we can support it in SmallRye, basically, we create a object that contain key-value pairs. You can do that yourself for now. see smallrye/smallrye-graphql#754 Also (just f.y.i) You can omit the Closing here as maps are not supported. If you want you can open a ticket in SmallRye GraphQL (or reopen the one mentioned above) and we can discuss a possible implementation. |
I don't think we should close the issue. You can have things unsupported but you shouldn't throw a NPE but a proper error message. Can we make things better for the user? |
We can open a ticket in SmallRye for the NPE. I'll do that now. |
@phillip-kruger Thank you so much for your answer , I hope the issues gets fixed as soon as possible , as for now I will try and create an object with key-value pairs as you suggested. |
Trying to build an api using GraphQL and Quarkus . I get NullPointerException whenever I run
mvn compile quarkus:dev
This is the api :
current behavior :
I don't know what seems to be the problem here , I would appreciate a little help , thanks in advance.
The text was updated successfully, but these errors were encountered: