Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/5t111111/casl-prisma-repro
https://github.com/5t111111/casl-prisma-repro
Last synced: 2 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/5t111111/casl-prisma-repro
- Owner: 5t111111
- Created: 2023-02-22T01:45:51.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-02-22T01:46:00.000Z (over 1 year ago)
- Last Synced: 2024-04-13T16:15:44.171Z (7 months ago)
- Language: TypeScript
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Minimal reproducible example for CASL Prisma relation condition issue
This is a minimal reproducible example for the issue of defining conditions on relation.
## Setup
Install deps and generate prisma client:
```bash
npm install
```Run the migration:
```bash
npx prisma migrate dev
```Seed the data:
```bash
npx prisma db seed
```## Reproduce
Run the script:
```bash
npx ts-node script.ts
```