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
Here is my usage in my NextJS project:
I tried "generate" also, but no change.
Any help appreciated
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#exampleprisma.user.signUpworks, butprisma.user.signUpdoes not, because the original prisma is not modified.
Here is my usage in my NextJS project:
Prisma client with custom method
Usage
I tried "generate" also, but no change.
Any help appreciated