Sequelize query with where inside include
<p>I have the following models: </p>

<pre><code>'use strict';

module.exports = function(sequelize, DataTypes) {
    var Collection = sequelize.define("Collection", {
        name: DataTypes.STRING,
        customer: DataTypes.STRING
    }, {
        classMethods: {
            associate: function(models) {
                Collection.hasMany(models.Items);
            }
        }
    });

    return Collection;
};


'use strict';

module.exports = function(sequelize, DataTypes) {
    var Item = sequelize.define("Item", {
        itemId: {
            type: DataTypes.STRING,
            primaryKey: true
        }
    }, {
        classMethods: {
            associate: function(models) {
                Item.belongsToMany(models.Collection);
            }
        }
    });

    return Item;
};
</code></pre>

<p>Lets say I want to get all the collections and their items with specific customer and one of the items contains the itemId. 
My query is as follows:</p>

<pre><code>models.Collection.findAll({
    where: {
      customer: customerParam
    },
    include: [{
        model: models.Item,
        where: {
          itemId: itemParam
        }
    }]
}).then(function(collections) {
    console.log(collections);
}) 
</code></pre>

<p>The problem is that this query filters the items from the collections that I got and now they only contain the items which are with the same itemId instead of containing all the items of the collection.</p>