graphql icon indicating copy to clipboard operation
graphql copied to clipboard

Schema and Resolver Pre-compile

Open AccsoSG opened this issue 1 year ago • 6 comments

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 ?

AccsoSG avatar Aug 24 '23 10:08 AccsoSG