Application Developer at KPI suite tech·
Needs advice
on
PrismaPrisma
and
SequelizeSequelize

Can you help me with the following:

  1. What additional functionality is present in Prisma when compared with Sequelize?
  2. Is getter and setter method available in Prisma? If then please provide any reference or resource.
  3. Is Hooks, hierarchy present in Prisma?
READ LESS
4 upvotes·128.8K views
Replies (1)
Recommends
on
Sequelize
  1. The key things to know about Prisma is that it is Typescript native, and that it (intentionally) does not support downward migrations.

  2. Prisma does not natively support the Getter/Setter pattern, but you can choose to implement middlewares to accomplish the same outcome. You may also want to consider custom client queries

  3. Prisma does not currently do hooks in the same sense as sequelize does hooks. Middleware would however enable you to create a similar construct. Please refer to this thread to see the discussion.

READ MORE
4 upvotes·128 views
Avatar of Vyshnav KPI

Vyshnav KPI

Application Developer at KPI suite tech