EntraptaJ / Type-GraphQLPrisma-Lab

Messing with Type-GraphQL experimental prisma 2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

KristianFJones/Type-GraphQLPrisma-Lab

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.

Usage

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.

Usage

Prisma Data Model

Add in the models you would like to create in schema.prisma

Run

npm run prisma2:generate

Create Migration/Initial DB Models

For non deployed applications

npm run prisma2:migrate:create:init

Deployed Applications

npm run prisma2:migrate:create

Bring up the new database model

npm run prisma2:migrate:up

About

Messing with Type-GraphQL experimental prisma 2.


Languages

Language:TypeScript 100.0%