This is a work in progress lab using my @K-FOSS/TS-ESNode, TypeGraphQL's experimental Prisma2 generator, and Prisma2 as a proof of concept playground for what future APIs could look like.
Clone this repo
Open in VSCode and relaunch in VSCode Remote Development Container.
Open VSCode terminal and run:
npm run prisma2:migrate:up
Launch the VSCode Debugging task.
Add in the models you would like to create in schema.prisma
Run
npm run prisma2:generate
Create Migration/Initial DB Models
npm run prisma2:migrate:create:init
npm run prisma2:migrate:create
Bring up the new database model
npm run prisma2:migrate:up