Schema generation at build time #1635
Labels
Community 👨👧
Something initiated by a community
Enhancement 🆕
New feature or request
Help Wanted 🆘
Extra attention is needed
Need More Info 🤷♂️
Further information is requested
Milestone
Is your feature request related to a problem? Please describe.
This is more an idea/investigation. Building the schema takes time and so it's common to build it once. This is fine for normal server but the build time occurs often for ephemeral environments such as AWS Lambda or any other FaaS env.
I'm trying to understand if it's possible to generate the result of buildSchema (which should be JS code as far as I understand) at build time. Very similar to what prisma does with its client.
This should reduce the start time nearly to 0 also in lambda contexts
Describe the solution you'd like
As above
Describe alternatives you've considered
I'm trying to understand if it's possible to achieve the same result from outside the library, but it's not clear to me
Note: this is just an idea, please feel free to ignore me if this makes no sense :)
The text was updated successfully, but these errors were encountered: