Apologies if I'm missing something obvious in the ...
# orm-help
j
Apologies if I'm missing something obvious in the docs, but is there a base type for the generated properties on
PrismaClient
for each model? E.g. if I have a model
User
and
Article
is there a base type for
prisma.user
such that I can have a function that would accept
prisma.user
or
prisma.article
like
function genericSelect(modelRepo: SomeBaseType)
?
r
@Jacob Simon 👋 This isn’t easy to achieve. Have a look at this request and comments for more info 🙂
j
Got it, thanks!