Custom method in a model, gives a "not found" error
I am trying to create a custom method in my model, but when I try to use it, it says
not a function
. I am confused by the docs that I quoted below as the works/not works are the same code?
In the above example,https://www.prisma.io/docs/orm/prisma-client/client-extensions/model#example Here is my usage in my NextJS project: Prisma client with custom method Usage I tried "generate" also, but no change. Any help appreciatedprisma.user.signUp
works, butprisma.user.signUp
does not, because the original prisma is not modified.
0 Replies