Skip to content

Commit 5812bbd

Browse files
docs(prisma) update deprecated methods
Since prisma client appended the connect() and disconnect() methods with a $, the current docs throw a deprecation warning.
1 parent c5027b4 commit 5812bbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/recipes/prisma.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,11 @@ import { PrismaClient } from '@prisma/client';
263263
export class PrismaService extends PrismaClient
264264
implements OnModuleInit, OnModuleDestroy {
265265
async onModuleInit() {
266-
await this.connect();
266+
await this.$connect();
267267
}
268268

269269
async onModuleDestroy() {
270-
await this.disconnect();
270+
await this.$disconnect();
271271
}
272272
}
273273
```

0 commit comments

Comments
 (0)