leangen / graphql-spqr

Build a GraphQL service in seconds
Apache License 2.0
1.09k stars 179 forks source link

Schema generation at compile time? #489

Open jamesdh opened 3 months ago

jamesdh commented 3 months ago

Many of the leading JVM frameworks have moved towards AOT optimizations through the use of annotation processors as opposed to using reflection. Micronaut was created around this concept, and it was also introduced in Spring 6.

Any thoughts to adopting a similar approach? Doing so would decrease startup time in production environments, potentially dramatically. Also, while I haven't really dabbled with native images yet, it should make it easier to make use of them.

P.S. love the project. As far as I'm concerned, this is the easiest/quickest way to get started with GraphQL on the JVM!