Support of serialization and deserialization of GraphqlSchemas #7022
Unanswered
tobiasdiez
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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.Beta Was this translation helpful? Give feedback.
All reactions