For example consider the following setup:
var Stuff = db.define('stuff', {
title: {
type: Sequelize.STRING(512),
}
});
var Other = db.define('stuff', {
title: {
type: Sequelize.STRING(512),
}
});
Stuff.belongsToMany(Other, {
through: "OtherStuff",
onDelete: "cascade"
});
Other.belongsToMany(Stuff, {
through: "OtherStuff",
onDelete: "cascade"
});
Now how should I proceed to retrieve all Other not belonging to a given Stuff?