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 92cbae90
authored
Apr 20, 2020
by
Kenny D
Committed by
GitHub
Apr 20, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(model): correct syntax error in example code (#12137)
1 parent
1e6f9af1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
lib/model.js
types/lib/model.d.ts
lib/model.js
View file @
92cbae9
...
...
@@ -2056,7 +2056,7 @@ class Model {
* include: [
* { model: Profile, required: true}
* ],
* limit 3
* limit
:
3
* });
*
* # Because the include for `Profile` has `required` set it will result in an inner join, and only the users who have a profile will be counted. If we remove `required` from the include, both users with and without profiles will be counted
...
...
types/lib/model.d.ts
View file @
92cbae9
...
...
@@ -1852,7 +1852,7 @@ export abstract class Model<T = any, T2 = any> extends Hooks {
* include: [
* { model: Profile, required: true}
* ],
* limit 3
* limit
:
3
* });
* ```
* Because the include for `Profile` has `required` set it will result in an inner join, and only the users
...
...
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