SequelizeJS:如何在不使用原始查询的情况下在多个数据库中包含关联(join)

假设DB“A”中有“Account”表,DB“B”中有“ConversationHistory”表。

我的伪初始化脚本是:

// Connection Script var db1 = new Sequelize("A", user, password) var db2 = new Sequelize("B", user, password) // Association Account.hasMany(ConversationHistory, {foreignKey: "sender_id", as: "conversations", constraints: false}) ConversationHistory.belongsTo(Account, {foreignKey: "sender_id", as: "sender", constraints: false}); // But when I use include in findMethod like ConversationHistory.findAll({ where: { ... }, include: [{ model: Account, where: { userId: userId }, as: "sender" }] }) 

并且这个findAll的结果是关于在数据库“B”上找不到Account表的错误(它隐式地使用B.Account和B.ConversationHistory,但是我想用A.Account来代替)。

是否有可能不使用原始查询跨多个数据库? 我已经searchSequelizeJS文档的选项,但无法find如何做到:(

谢谢。