spring-graphql icon indicating copy to clipboard operation
spring-graphql copied to clipboard

Ahead Of Time support

Open bclozel opened this issue 3 years ago • 0 comments

Since Spring Framework has been working on AOT and GraalVM Native Image support, we should consider improvements to make this work in time for 1.1.0.

Right now we're identifying several tasks:

  • [ ] make sure that the scanning of schema files is supported. This should be taken care of in spring-projects/spring-framework#29163
  • [ ] contribute reachability metadata for graphql-java, if any. Ideally, we should contribute them to the community repository.
  • [ ] contribute RuntimeHints by meta-annotating @SchemaMapping with @Reflective and implementing a custom ReflectiveProcessor. This should take care of controller method invocation at runtime and Reflection hints on application types. We could consider contributing reflection hints by post-processing schema and datafetchers, but this would probably require an arrangement to advanced for the AOT phase.

bclozel avatar Sep 22 '22 12:09 bclozel