From 924db4afdaccad5ad7a908cf93ce2ce9c563dc60 Mon Sep 17 00:00:00 2001 From: Jan Piotrowski Date: Tue, 22 Aug 2023 00:07:16 +0200 Subject: [PATCH] docs(README): Make limitations a list --- README.md | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index a01378c..c8f12f2 100644 --- a/README.md +++ b/README.md @@ -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.