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 b0e6f039
authored
Aug 02, 2020
by
Hyunyoung Cho
Committed by
GitHub
Aug 01, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs(advanced-many-to-many): add missing `await` (#12533)
1 parent
4b2e7674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
docs/manual/advanced-association-concepts/advanced-many-to-many.md
docs/manual/advanced-association-concepts/advanced-many-to-many.md
View file @
b0e6f03
...
...
@@ -48,8 +48,8 @@ With this, we can now track an extra information at the through table, namely th
Example:
```
js
const
amidala
=
User
.
create
({
username
:
'p4dm3'
,
points
:
1000
});
const
queen
=
Profile
.
create
({
name
:
'Queen'
});
const
amidala
=
await
User
.
create
({
username
:
'p4dm3'
,
points
:
1000
});
const
queen
=
await
Profile
.
create
({
name
:
'Queen'
});
await
amidala
.
addProfile
(
queen
,
{
through
:
{
selfGranted
:
false
}
});
const
result
=
await
User
.
findOne
({
where
:
{
username
:
'p4dm3'
},
...
...
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