-
Notifications
You must be signed in to change notification settings - Fork 326
Using Upload scalar doesn't work with input object #404
Comments
This has been fixed in graphql-java-tools 6.0.0. You report this in graphql-java-servlet, but this is from the logs it's clear you're using graphql-java-tools as well, and probably using it together with the spring-boot-starter. In those cases register the issue int he graphql-spring-boot-starter project please. For now try updating to the latest version of graphql-spring-boot-starter and let it pull in the latest version of graphql-java-tools and servlet. As said above it should already be fixed there, because this particular use case was part of that. |
Thanks! I am on the latest version of graphql-spring-boot-starter. And I think all the other libraries are at latest versions: |
Hmm that's strange. There were some more changes after this, so could be it's changed in the snapshot release. If you have time, please check if that's true or not. Otherwise I'll have to take a look at it when I have the time. I'll transfer this issue to the spring-boot project btw. |
Same exception on 7.1.0-SNAPSHOT. |
I can confirm and have the same problem with |
I'm pretty sure I'm having the same or similar problem. I have a custom scalar
Sample Input:
|
@vojtapol Is this an issue that requires a fix in graphql-java-tools? |
graphql-java-tools 6.3.0 contains a fix for scalar issues: graphql-java-kickstart/graphql-java-tools#453. This has been released with graphql-spring-boot version 8.1.0. Can somebody check if that resolves this issue now too? |
Opened a new issue for this in java-tools: graphql-java-kickstart/graphql-java-tools#466 |
Is it even appropriate to use the graphql-java-servlet in a netty server? How can it be achieved on a netty server? |
File upload works great if Upload is a direct input parameter of a query or nested in an array, but fails if it is nested.
Here are the examples to demonstrate:
with this in schema:
FileInput is mapped to this java class:
The first two queries work great when called like this:
But the last two (with Upload contained in another input type fail:
The exception that is thrown:
The text was updated successfully, but these errors were encountered: