Extension's $connect
method is not used by Prisma query methods unless it's invoked explicitly
#23124
Labels
domain/client
Issue in the "Client" domain: Prisma Client, Prisma Studio etc.
kind/improvement
An improvement to existing feature and code.
topic: clientExtensions
topic: connect
Bug description
When using a Prisma extension with a client $connect method, this is not invoked by the automatic connection of query methods (findFirst, findMany etc...).
It is invoked only by explicitly calling prismaExtension.$connect().
How to reproduce
Expected behavior
Prisma query methods should use the provided extension $connect method on automatic connection
Prisma information
Environment & setup
Operating System:
Platform: win32
Arch: x64
Version: Windows 11 Pro
Binaries:
Node: 20.11.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant Packages:
next: 14.1.0
react: 18.2.0
react-dom: 18.2.0
typescript: 5.3.3
Next.js Config:
output: standalone
Database: SQL Server
Prisma Version
5.9.1
The text was updated successfully, but these errors were encountered: