Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
public
/
sequelize
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
不要怂,就是干,撸起袖子干!
Commit f6dd9435
authored
Apr 09, 2019
by
Sam Alexander
Committed by
Sushant
Apr 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(types): enhance having parameters (#10733)
1 parent
4d5be9a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
types/lib/model.d.ts
types/test/where.ts
types/lib/model.d.ts
View file @
f6dd943
...
@@ -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
?:
Where
AttributeHash
;
having
?:
Where
Options
;
/**
/**
* Use sub queries (internal)
* Use sub queries (internal)
...
...
types/test/where.ts
View file @
f6dd943
...
@@ -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
});
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment