1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/nexus-with-prisma
2020-10-08 15:36:55 +09:00
..
prisma create nexus-with-prisma 2020-10-08 15:36:55 +09:00
.gitignore create nexus-with-prisma 2020-10-08 15:36:55 +09:00
api.graphql create nexus-with-prisma 2020-10-08 15:36:55 +09:00
api.ts create nexus-with-prisma 2020-10-08 15:36:55 +09:00
package.json create nexus-with-prisma 2020-10-08 15:36:55 +09:00
README.md create nexus-with-prisma 2020-10-08 15:36:55 +09:00
tsconfig.json create nexus-with-prisma 2020-10-08 15:36:55 +09:00
yarn.lock create nexus-with-prisma 2020-10-08 15:36:55 +09:00

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 save --experimental
npx prisma migrate up --experimental

Terminal 1

npm run dev

Terminal 2

npm run dev:typecheck