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 2a1ca0c6
authored
May 21, 2015
by
syldor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add where clause
1 parent
99824b27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
docs/docs/models-usage.md
docs/docs/models-usage.md
View file @
2a1ca0c
...
@@ -540,7 +540,12 @@ This will produce an outer join. However, a `where` clause on a related model wi
...
@@ -540,7 +540,12 @@ This will produce an outer join. However, a `where` clause on a related model wi
User
.
findAll
({
User
.
findAll
({
include
:
[
include
:
[
{
model
:
Tool
,
as
:
'Instruments'
,
include
:
[
{
model
:
Tool
,
as
:
'Instruments'
,
include
:
[
{
model
:
Teacher
,
include
:
[
/* etc */
],
required
:
false
}
{
model
:
Teacher
,
where
:
{
school
:
"Woodstock Music School"
},
required
:
false
}
]}
]}
]
]
}).
then
(
function
(
users
)
{
}).
then
(
function
(
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