blitz-js / blitz

⚡️ The Missing Fullstack Toolkit for Next.js

Home Page:https://Blitzjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support prisma extensions

papsavas opened this issue · comments

What do you want and why?

handle $extends() prisma function (currently errors to TypeError: (intermediate value).$extends is not a function

  • The types of the enhanced PrismaClient break when extensions are added.

image
image

(Correct) DB types using new PrismaClient() without blitz enhancement (cannot be used due to this):

image

Additional Context

The error of using

const db = new EnhancedPrisma().$extends(...)

image

hey @papsavas, thanks for the issue, can you please complete the issue template? Also can you provide an example of an extension failing for you with the typescript error.

@siddhsuresh i've added as much context as i could. A specified example is not necessary due to the global scope that the error holds, as also mentioned in #4251

thanks @papsavas, taking a look now

any updates?