Need help. I am migrating from Sequelize to Prisma...
# orm-help
m
Need help. I am migrating from Sequelize to Prisma.
Copy code
// Sequelize 
Product.findAll({ 
group: ['date', Sequelize.json(`type.warranty`)],
attributes: [
      'date',
      [Sequelize.json(`type.warranty`), 'warranty'],
      [Sequelize.fn('sum', Sequelizer.col('cost')), 'price ']
    ],
})
How do I Grouping by JSON field?
r
@Mukesh Kumar 👋 Unfortunately grouping by Json fields isn’t supported. It would be great if you could create a feature request for this here so that we can look into this 🙂