如何使用包含具有后续属性的属性?
任何想法如何使用包含属性(当你只需要包括包含表的特定字段)与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) {
- Facebook Messenger API“URL无法validation”
- 与正常路线一起使用Swagger Express
- 从VS 2015 Task Runner资源pipe理器运行时,Gulp任务失败,但不是从命令提示符运行
- 持续集成,dist文件夹和node_modules
- 续集迁移脚本抛出errorUnhandled拒绝SequelizeBaseError:SQLITE_ERROR:没有这样的表
- SuperTest的期待与Chai.expect
- 如何工作deploydauthentication用户
- 我如何testing我的快速应用程序与摩卡?
- Webstorm 8.0.5关于“未解决的方法或function”