Any guide on how to migrate from TypeORM to Prisma...
# orm-help
γ
Any guide on how to migrate from TypeORM to Prisma. With the OOP architecture that TypeORM uses, I can place reusable functions for a specific model (Entity) and use them anywhere. Is there a way to do something similar in Prisma? Or, do I have to create separate functions that take as a parameter the
prisma
client object, and import them every time I want to use them?
n
Hey there 👋 we have a guide that describes how to migrate from TypeORM to Prisma here: https://www.prisma.io/docs/guides/migrate-to-prisma/migrate-from-typeorm 🙂
prisma rainbow 1
Or, do I have to create separate functions that take as a parameter the 
prisma
 client object, and import them every time I want  to use them?
That would be the way to go indeed 👍
γ
Okay, great! Thank you
Also, is there a way to implement listeners like in TypeORM?
n
We don’t have the same concept of listeners as TypeORM does but our Middleware might enable similar use cases for you. Alternatively, you can always listen for DB changes by setting up triggers in the DB itself 🙌
γ
Oh okay, thank you for your quick responses!