https://github.com/5t111111/casl-prisma-repro
https://github.com/5t111111/casl-prisma-repro
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/5t111111/casl-prisma-repro
- Owner: 5t111111
- Created: 2023-02-22T01:45:51.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-02-22T01:46:00.000Z (over 2 years ago)
- Last Synced: 2025-01-12T08:15:15.881Z (5 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
```