You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a quite complex graphql schema spreading over a couple of files. In order to improve the cold start time of the deployed server, I would like to perform the parsing and merging of the schema during build and not during runtime.
Describe the solution you'd like
Have helper methods that allow to serialize a GraphqlSchema AST (without resolvers) to say JSON, and then latter deserialize from it again to generate the GraphqlSchema. That is, a performant version of printSchema and loadSchema.
Describe alternatives you've considered
Serialize the merged schema using printSchema, and then load it at runtime via loadSchema. But I would like to move the "parse the schema to AST" to build time.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have a quite complex graphql schema spreading over a couple of files. In order to improve the cold start time of the deployed server, I would like to perform the parsing and merging of the schema during build and not during runtime.
Describe the solution you'd like
Have helper methods that allow to serialize a
GraphqlSchema
AST (without resolvers) to say JSON, and then latter deserialize from it again to generate the GraphqlSchema. That is, a performant version ofprintSchema
andloadSchema
.Describe alternatives you've considered
Serialize the merged schema using
printSchema
, and then load it at runtime vialoadSchema
. But I would like to move the "parse the schema to AST" to build time.The text was updated successfully, but these errors were encountered: