不要怂,就是干,撸起袖子干!

Commit f6dd9435 by Sam Alexander Committed by Sushant

fix(types): enhance having parameters (#10733)

1 parent 4d5be9a4
Showing with 7 additions and 2 deletions
...@@ -447,9 +447,9 @@ export interface FindOptions extends Logging, Transactionable, Filterable, Proje ...@@ -447,9 +447,9 @@ export interface FindOptions extends Logging, Transactionable, Filterable, Proje
raw?: boolean; raw?: boolean;
/** /**
* having ?!? * Select group rows after groups and aggregates are computed.
*/ */
having?: WhereAttributeHash; having?: WhereOptions;
/** /**
* Use sub queries (internal) * Use sub queries (internal)
......
...@@ -256,3 +256,8 @@ where = { ...@@ -256,3 +256,8 @@ where = {
where = whereFn('test', { where = whereFn('test', {
[Op.gt]: new Date(), [Op.gt]: new Date(),
}); });
// Where as having option
MyModel.findAll({
having: where
});
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!