Convert String to Date for Graphql in spring boot 3.5
I am migrating a Spring Boot application from version 2.6.6 to 3.5.0, and upgrading the JDK from 17 to 21. Previously, I was using the graphql-kickstart dependency, but I have replaced it with the built-in Spring Boot GraphQL dependency. There’s something I was able to do with graphql-kickstart that I can’t do with the new dependency. Previously, I had the following setup: file.graphqls myFunction(dateField: String): OutputDTO file.java public OutputDTO myFunction(Date dateField) { ... } After migrating Spring Boot and the GraphQL dependency, my Java code now looks like this: @QueryMapping pub
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.