graphql
graphql copied to clipboard
Schema and Resolver Pre-compile
Is your feature request related to a problem? Please describe. Schemas and resolvers are regenerated at every server startup. Especially with a large schema, this leads to long startup times.
For use cases like autoscalling and cold starts (serverless) this is a big problem. The startup can take several seconds for large schemas, making the use of autoscalling and cold starts impractical.
Describe the solution you'd like As already discussed in https://github.com/neo4j/graphql/issues/243 (@mathix420) the possibility of a pre-compile would be perfect to solve this problem. For example, this could be solved via a specialized Neo4j GraphQL plugin for graphql-codegen.
Describe alternatives you've considered ?