https://kotlinlang.org logo
#graphql-kotlin
Title
# graphql-kotlin
d

dave08

02/18/2021, 12:59 PM
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

Dariusz Kuc

02/18/2021, 2:20 PM
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

dave08

02/18/2021, 2:24 PM
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

Dariusz Kuc

02/18/2021, 3:26 PM
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
2 Views