FIX/Distinct in FindOptions

The `FIndOptions` is applied for the `findAndCount` and `findAndCountAll`. For the count to be accurate with relationships, you need to be able to apply the `disinct` flag. This update will allow us to utilize the interface in those situations.
This commit is contained in:
John Pinkster
2017-04-11 10:08:43 -04:00
committed by GitHub
parent 14f8fb1b17
commit 5f8eb094db
+5
View File
@@ -3211,6 +3211,11 @@ declare namespace sequelize {
* https://github.com/sequelize/sequelize/blob/master/docs/docs/models-usage.md#user-content-manipulating-the-dataset-with-limit-offset-order-and-group
*/
group?: string | string[] | Object;
/**
* Apply DISTINCT(col) for FindAndCount(all)
*/
distinct?: boolean;
}
/**