如何使用包含具有后续属性的属性?
任何想法如何使用包含属性(当你只需要包括包含表的特定字段)与sequelize?
目前我有这个(但不能按预期工作):
var attributes = ['id', 'name', 'bar.version', ['bar.last_modified', 'changed']]; foo.findAll({ where : where, attributes : attributes, include : [bar] }).success(function (result) { ...
像这样的东西应该工作
foo.findAll({ where : where, attributes : attributes, include : [{ model: bar, attributes: attributes}] }).success(function (result) {