We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec99c01 commit 526b70cCopy full SHA for 526b70c
packages/schema/src/plugins/enhancer/enhance/index.ts
@@ -237,8 +237,9 @@ export type { PrismaClient };
237
private createLogicalPrismaEnhanceFunction(authTypeParam: string) {
238
const prismaVersion = getPrismaVersion();
239
240
- // Prisma 5.16.0 introduced a new generic parameter to `DynamicClientExtensionThis`
241
- const hasClientOptions = prismaVersion && semver.gte(prismaVersion, '5.16.0');
+ // Prisma 5.16.0...6.5.0 introduced a new generic parameter to `DynamicClientExtensionThis`
+ const hasClientOptions =
242
+ prismaVersion && semver.gte(prismaVersion, '5.16.0') && semver.lt(prismaVersion, '6.5.0');
243
244
return `
245
// overload for plain PrismaClient
0 commit comments