graphql-java-generator / graphql-maven-plugin-project

graphql-maven-plugin is a Maven Plugin for GraphQL, based on graphql-java. It accelerates the development for both the client and the server, by generating the Java code. It allows a quicker development when in contract-first approach, by avoiding to code the boilerplate code.
https://graphql-maven-plugin-project.graphql-java-generator.com
MIT License
115 stars 47 forks source link

Allow usage of @GraphQLRepository in native mode #186

Open dpalmmna opened 1 year ago

dpalmmna commented 1 year ago

In order to optimise application, attempting to generate native image of application (spring 3 aot).

Declared the class annoted with @GraphQLRepository as a proxy. The application will not start in native mode as it cannot find bean of the annoted class autowired into an other bean.

Is it possible to add support for native mode ? Or is suggested configuration to use @GraphQLRepository in spring native mode.

etienne-sf commented 1 year ago

Hello,

I actually didn't test that.

I'll add an integration test for this case.