i am sorry for another question but i can’t find o...
# orm-help
p
i am sorry for another question but i can’t find on google aod official docs in prisma website so im asking here. is there anyway I can create custom repository that extends certain prisma model and add methods to it? something like
Copy code
class MyUserCustomRepo extends PrismaClient<User> {
  customMethod() {
    // implement the function
  }
}
r
@prisma chobo 👋 Currently not, as Prisma doesn’t create class based models. It would be great if you could add a 👍 on this request so that we can look at the priority.
👍 1
g
I’m pretty sure you can do that though
But by extending the Prisma client and implementing custom functions generally, not for a specific model, but for specific models that would be a good feature
r
It would be great if you could add a workaround to do this in the above request 🙂
g
I’ll try to come up with something with my current knowledge 😅
👍🏼 1
👍 2
Is there a place where I can find community prisma workarounds for problems (I’ve seen some), I’d like to look at some of those and see how they extended prisma
r
You can find them in the same request above.
g
Thanks
👍 1