You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just ran in to this (using postgres), and was pretty tripped up by it. Thanks for the PR, and hopefully this will make it in so I can remove the hacks on my side!
for < 4 version, here is an alternative work around,
let idsToSkip = [...]; //generate array of ids, this may result in empty array
idsToSkip.push('-1'); // push a value that can not be the id in table. this will generate `not in ('-1')` query serving the purpose.
db.foo.findAll({
where: {
id: {
$notIn: idsToSkip
}
}
});
Activity
markushedlund commentedon Nov 13, 2015
Created a pull request #4860. But I realize this would be a breaking change.
jesseditson commentedon Jan 26, 2016
Just ran in to this (using postgres), and was pretty tripped up by it. Thanks for the PR, and hopefully this will make it in so I can remove the hacks on my side!
markushedlund commentedon Jan 27, 2016
Workaround:
vineshhpatel commentedon Oct 26, 2017
for < 4 version, here is an alternative work around,
check it out here, https://stackoverflow.com/a/46947550/842386