知道如何在sequelize中使用包含属性的include(当您只需要包含包含的表的特定字段时)吗?
目前我有这个(但它没有按预期工作):
var attributes = ['id', 'name', 'bar.version', ['bar.last_modified', 'changed']];
foo.findAll({
where : where,
attributes : attributes,
include : [bar]
}).success(function (result) { ...