Skip to content

Commit dc45dd1

Browse files
authored
docs(casl/prisma): fix broken WhereInput reference link (#1137)
1 parent 01f79f4 commit dc45dd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/casl-prisma/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pnpm add @casl/prisma @casl/ability
2121

2222
## Usage
2323

24-
This package is a bit different from all others because it provides a custom `createPrismaAbility` factory function that is configured to check permissions using Prisma [WhereInput](https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#where):
24+
This package is a bit different from all others because it provides a custom `createPrismaAbility` factory function that is configured to check permissions using Prisma [WhereInput](https://www.prisma.io/docs/orm/reference/prisma-client-reference#where):
2525

2626
```ts
2727
import { User, Post, Prisma } from '@prisma/client';
@@ -56,7 +56,7 @@ Unfortunately, there is no easy way to automate this, except of adding additiona
5656
5757
### Note on Prisma Query runtime interpreter
5858

59-
`@casl/prisma` uses [ucast](https://github.com/stalniy/ucast) to interpret Prisma [WhereInput](https://www.prisma.io/docs/reference/api-reference/prisma-client-reference#where) in JavaScript runtime. However, there are few caveats:
59+
`@casl/prisma` uses [ucast](https://github.com/stalniy/ucast) to interpret Prisma [WhereInput](https://www.prisma.io/docs/orm/reference/prisma-client-reference#where) in JavaScript runtime. However, there are few caveats:
6060
- equality of JSON columns is not implemented
6161
- equality of array/list columns is not implemented (however operators like `has`, `hasSome` and `hasEvery` should be more than enough)
6262
- when defining conditions on relation, always specify one of operators (`every`, `none`, `some`, `is` or `isNot`)

0 commit comments

Comments
 (0)