-
Notifications
You must be signed in to change notification settings - Fork 305
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
QueryDSL does not work with Extended Validation #240
Comments
Could you provide a sample application showing the problem? Ideally, something we can download or a project on github we could git clone. So far, I don't see anything specific to Spring GraphQL so we'd need to see the problem for ourselves to figure things out. |
Yes very much. I have pushed the small example based on your webmvc-http-sample into my github account. If you start the application the query query {
artifactRepositories {
id
}
} doese not return any data. If you disable the |
Looking at extended validation, I don't know yet what a solution might be but we can review the order in which we perform registrations in |
@Thinkenterprise, the way auto registration works has been updated to be more reliable and work better with other ways of registerting data fetchers. It's now based on a So this should be fixed, if you'd like you can give it a try with 1.0.0-SNAPSHOT and Boot 2.7.0-SNAPSHOT for the starter. |
@rstoyanchev I checked it works. Thanks!! |
Good to hear and thanks for the quick confirmation! |
I work with Spring Boot 2.6 and Spring GraphQL 1.0.0-M4.
Spring GraphQL supports Jakarta Bean Validation, and it works too.
I still tried the validation via DIRECTIVES and their implementation. That works too!!
However, if I add the following configuration, the QueryDSL repositories no longer work and return a value of null.
I also added the configuration and dependency to the Spring GraphQL sample and there are problems there too. So, it seems to be a general problem and not a problem in my implementation!?
I am not sure whether this is a mistake in the implementation of the various
QueryDSLDataFetcher
or whether it is due to the graphql-java-extended-validationI just want to communicate the problem and let the Spring GraphQL team decide. Thanks
The text was updated successfully, but these errors were encountered: