Skip to content

Commit c65b4e4

Browse files
distinct, subQuery, rejectOnEmpty added (closes #193)
1 parent 1fda92a commit c65b4e4

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

lib/interfaces/IFindOptions.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,19 @@ export interface IFindOptions<T> extends LoggingOptions, SearchPathOptions {
7878
* https://github.com/sequelize/sequelize/blob/master/docs/docs/models-usage.md#user-content-manipulating-the-dataset-with-limit-offset-order-and-group
7979
*/
8080
group?: string | string[] | Object;
81+
82+
/**
83+
* Apply DISTINCT(col) for FindAndCount(all)
84+
*/
85+
distinct?: boolean;
86+
87+
/**
88+
* Prevents a subquery on the main table when using include
89+
*/
90+
subQuery?: boolean;
91+
92+
/**
93+
* Throw EmptyResultError if a record is not found
94+
*/
95+
rejectOnEmpty?: boolean;
8196
}

0 commit comments

Comments
 (0)