MichalLytek / MichalLytek/type-graphql
Schema generation at build time
- Dominant language
- TypeScript
- Stars
- 8.1k
- Forks
- 672
- PR merge metrics
- No merged PRs in 30d
Description
**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 :)
Contributor guide
Assessment
This issue has not been assessed yet.