Hi team. just discovered prisma and looks pretty a...
# orm-help
k
Hi team. just discovered prisma and looks pretty awesome. I'm looking for an example with classes and functions. For example a User class which has functions like • verifyEmail - checks if the email exists in the database • enrichEmail - calls an external api (like hunter.io) to get user profile • notifyUser - sends an email to the user Would really appreciate a well documented example, (not limited to the orm section).
n
Hey Kranthi 👋 welcome to our community and thanks for the kind words 😄 Unfortunately I'm not aware of any examples with such a
User
class...
I'm looking for an example with classes and functions.
Can I ask what you mean by this specifically? Prisma works differently than traditional ORMs and only generates types and CRUD queries for you, but you typically don't use classes as in other ORMs like TypeORM. Does that help already? Let me know if you have more questions, I'd be happy to help where I can! 🙂
k
Thanks nikolas. Found this - https://github.com/prisma/prisma-examples . Will look through these to get a better understanding.
🙌 1
m
@Kranthi Kiran ...and you’ll find help every step of the way.
❤️ 2