@prisma/photon
This package is being used by prisma2
.
Contributing
Getting a local test version running
- Clone this repo
cd photonjs/packages/photon
yarn
ts-node examples/generate.ts ./examples/blog/
cd examples/blog
prisma2 lift save --name init && prisma2 lift up
ts-node main.ts
Working on code generation
If you have your local blog example running, you can now just do changes to TSClient.ts
and re-execute npx ts-node examples/generate.ts ./examples/blog/
.
Working with the runtime
If you want to use the local runtime in the blog example, just run
ts-node examples/generate.ts ./examples/blog/ --local-runtime
Changes to query.ts
will then be reflected when running examples/blog/main.ts