https://github.com/entraptaj/type-graphqlprisma-lab
Messing with Type-GraphQL experimental prisma 2.
https://github.com/entraptaj/type-graphqlprisma-lab
Last synced: over 1 year ago
JSON representation
Messing with Type-GraphQL experimental prisma 2.
- Host: GitHub
- URL: https://github.com/entraptaj/type-graphqlprisma-lab
- Owner: EntraptaJ
- Created: 2020-03-26T17:25:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-22T15:04:32.000Z (over 3 years ago)
- Last Synced: 2025-03-28T20:06:08.621Z (over 1 year ago)
- Language: TypeScript
- Size: 1.53 MB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 31
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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:
```SH
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](./schema.prisma)
Run
```SH
npm run prisma2:generate
```
Create Migration/Initial DB Models
#### For non deployed applications
```SH
npm run prisma2:migrate:create:init
```
#### Deployed Applications
```sh
npm run prisma2:migrate:create
```
Bring up the new database model
```SH
npm run prisma2:migrate:up
```