Architecture
- You or a script (CI, programmatic, etc.) run
$ prisma generate
. - Prisma generator system reads your Prisma schema file
- Prisma generator system runs the Nexus Prisma generator passing it the "DMMF", a structured representation of your Prisma schema.
- Nexus Prisma generator reads your Nexus Prisma generator configuration if present.
- Nexus Prisma generator writes generated source code into its own package space in your node_modules.
- Later when you run your code it imports
nexus-prisma
which hits the generated entrypoint. - The generated runtime is actually thin, making use of a larger static runtime.