blitz icon indicating copy to clipboard operation
blitz copied to clipboard

support prisma extensions

Open papsavas opened this issue 1 year ago • 5 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

papsavas avatar Jan 24 '24 15:01 papsavas

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 avatar Jan 24 '24 16:01 siddhsuresh

related to #4251

Syarx avatar Jan 24 '24 23:01 Syarx

@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

papsavas avatar Jan 25 '24 10:01 papsavas

thanks @papsavas, taking a look now

siddhsuresh avatar Jan 25 '24 17:01 siddhsuresh

any updates?

Syarx avatar Mar 05 '24 13:03 Syarx