Registering the DateTime Scalar from the Extended Scalars library throwing error #3679
Replies: 2 comments 1 reply
-
I would suggest creating an issue against the actual project throwing this exception: https://github.com/spring-projects/spring-graphql/issues I don't think graphql-java is responsible here. |
Beta Was this translation helpful? Give feedback.
-
So after much commenting and restarting, I believe I have finally figured out the problem (hint: It had nothing to do with the DateTime extended Scalar). I'm not sure what changed from v3.2.8 -> v3.3.x in Spring Boot, but the error is happening around Boolean fields for classes and the supporting The way I had it currently working in v3.2.8 was something like the following:
And the
Apparently either Spring Boot of GraphQL wants either the
Or it wants me to change my getter method in I've looked around in changelogs, but I'm not seeing what changed that would make this behave like this? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have recently upgraded my project to using the most recent version of Spring Boot v3.3.2, coming from v3.2.8, and it appears that starting with Spring Boot v3.3.x it is now using the GraphQL Java library v22. I'm also using the GraphQl Java Extended Scalars dependency, and am trying to register the DateTime Scalar.
Everything works and compiles and runs fine in Spring Boot v3.2.8, however, v3.3.2 is throwing the following error at startup:
This is the code where I am registering the DateTime Scalar:
It definitely seems to be coming from this RuntimeWiringConfigurer, because if I remove that, the application starts just fine with no exceptions. I have scoured the forums and documentation looking to see if there is a different way to register Scalars since v22 but everything seem to point to doing it the way I have it.
Thanks in advance for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions