Suppose I have the traditional database of customers and orders
I need a query that returns only those customers with orders in the Sequelize ORM
In SQL it would be something like
SELECT DISTINCT name FROM Customers c INNER JOIN Orders o ON o.customerId = c.id
But in sequelize, without raw statements, how would it be?
Rafael