nexus/examples/with-prisma
Ryan Chenkie b327841a63
chore(docs): update migrate commands (#792)
2021-01-19 09:17:22 -05:00
..
prisma feat: new docs site (#500) 2020-09-30 12:25:39 +02:00
.gitignore feat: new docs site (#500) 2020-09-30 12:25:39 +02:00
README.md chore(docs): update migrate commands (#792) 2021-01-19 09:17:22 -05:00
api.graphql chore(docs): update example deps 2021-01-07 13:05:41 -05:00
api.ts chore: update nexus ver in examples 2020-12-14 14:10:29 -05:00
context.ts feat: rename typegenAutoConfig and rootTyping (#723) 2020-12-10 19:23:23 +01:00
package.json chore(docs): example MIT license 2021-01-07 13:06:05 -05:00
tsconfig.json feat: new docs site (#500) 2020-09-30 12:25:39 +02:00
yarn.lock chore(docs): update example deps 2021-01-07 13:05:41 -05:00

README.md

Nexus Example With Prisma

This example shows how to use Nexus with Prisma without the Prisma plugin for Nexus. This approach is lower-level and here for reference reasons. Generally, you would want to use the Prisma plugin.

Try It

npm install
npx prisma generate
npx prisma migrate dev --preview-feature

Terminal 1

npm run dev

Terminal 2

npm run dev:typecheck