Skip to content

Commit

Permalink
docs(README): Make limitations a list
Browse files Browse the repository at this point in the history
  • Loading branch information
janpio authored Aug 21, 2023
1 parent 6a278bc commit 924db4a
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,17 +73,15 @@ prisma.$primary().user.findMany({ where: { ... }})

### Caveats and limitations

At the moment, if you are using this read replicas extension alongside other extensions, this extension should be applied last:

```ts
const prisma = new PrismaClient()
.$extends(withAccelerate())
.$extends(rlsExtension())
.$extends(
readReplicas({
db: 'postgresql://replica.example.com:5432/db',
}),
)
```

If you are using the read replicas extension with Prisma version below 5.1, any result extensions will not work.
- At the moment, if you are using this read replicas extension alongside other extensions, this extension should be applied last:
```ts
const prisma = new PrismaClient()
.$extends(withAccelerate())
.$extends(rlsExtension())
.$extends(
readReplicas({
db: 'postgresql://replica.example.com:5432/db',
}),
)
```
- If you are using the read replicas extension with Prisma version below 5.1, any result extensions will not work.

0 comments on commit 924db4a

Please sign in to comment.