ORM stands for Object-Relational Mapping. It helps developers work with databases by mapping code objects to database tables, making database operations easier and more intuitive.
const users = await prisma.user.findMany({ where: { age: { gt: 18 } } });
The findMany method returns an array of all user records matching the condition. Here, it returns users with age greater than 18.
Sequelize requires using DataTypes to specify field types when defining models. Option A correctly uses DataTypes.STRING and DataTypes.FLOAT.
If no user matches the email, findUnique returns null. Trying to access name on null causes a runtime error.
Sequelize transactions ensure all operations succeed or none do. If an error occurs, the transaction rolls back, so no changes are saved.
