Hi! Any plans on adding a kapt pre-processor for t...
# graphql-kotlin
d
Hi! Any plans on adding a kapt pre-processor for the schema generator, or is there a reason that it has to be done at runtime?
d
Unsure how annotation processor would help much with building a schema as by default we dont require any annotations
Currently we dont have any plans to move away from reflection based schema generation
d
The idea was that those who would want generation through annotation processing could use
@Query
instead of (or in addition to) the marker Interface
Query
... it would make startup faster and be more efficient. But I'd understand that those using Spring anyways suffer from long startups 😇, unless things have changed. Power comes with drawbacks...
d
Plain spring boot app startup is in range of a second or two. Its all those extra auto configurations that take forever to start up (eg we have one that pulls stuff from s3 and yeah that takes forever...)
but yeah it could be interesting to use compiler plugin - this would allow us to finally support stuff like default values (which are not possible atm due to the JVM limitations)
👍🏼 1