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 4da70675
authored
Jan 15, 2015
by
Mick Hansen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/ErikvdVen/sequelize
into ErikvdVen-master
2 parents
040e24c3
58a0314a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
0 deletions
test/include/findAll.test.js
test/include/findAll.test.js
View file @
4da7067
...
...
@@ -1750,6 +1750,32 @@ describe(Support.getTestDialectTeaser('Include'), function() {
});
});
it
(
'should be possible to select on columns inside a through table'
,
function
(
done
)
{
var
self
=
this
;
this
.
fixtureA
(
function
()
{
self
.
models
.
Product
.
findAll
({
attributes
:
[
'title'
],
include
:
[
{
model
:
self
.
models
.
Tag
,
through
:
{
where
:
{
ProductId
:
3
}
},
required
:
true
}
]
}).
done
(
function
(
err
,
products
)
{
expect
(
err
).
not
.
to
.
be
.
ok
;
expect
(
products
).
have
.
length
(
1
);
done
();
});
});
});
// Test case by @eshell
it
(
'should be possible not to include the main id in the attributes'
,
function
(
done
)
{
var
Member
=
this
.
sequelize
.
define
(
'Member'
,
{
...
...
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