SequelizeJS: How to include association (join) across multiple databases without using raw query
问题 Suppose, there is "Account" table in DB "A", and there is "ConversationHistory" table in DB "B". My pseudo initialized script is: // 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