mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Prisma GraphQL schema first sample
This sample project uses sqlite as the relational database. To use a different database, check the Prisma docs.
Installation
- Install dependencies:
npm install - Generate TypeScript type definitions for the GraphQL schema:
npm run generate:typings - Create sqlite database and create tables:
npx prisma db push - Start server:
npm run start:dev
Graphql Playground
When the application is running, you can go to http://localhost:3000/graphql to access the GraphQL Playground. See here for more.