Is there a way when making a SequelizeJS query on an object, and including a relation which has a belongs-to-many association, to have the included property not return the assoc
You can try specifying the attributes
property.
So to include fields say a,b,c you add
attributes: ['a', 'b','c']
To exclude them
attributes:{exclude:['a', 'b','c']}
So findAll looks like
Model.someModel.findAll({
where: // some condition
include: // some other model
attributes: // some fields
})
You can also specify attributes within the include clause