Tell me please
How to use sequelize to display data in tables if they do not have a column for a connection? Unfortunately, the sequelize documentation did not find anything.
Table: abs id name 1 a1 2 a2
has model: ab
id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, name: {type: Sequelize.STRING} Table: cds id label 1 c1 2 c2
has model: cd
id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true }, label: {type: Sequelize.STRING}
When reading id: 1
from the table abs
it is necessary to include in it all the data from the table cds
. Those. realize the following output:
id: 1, name: a1, fd: { [0]: { id: 1, label: c1 }, [1]: { id: 2, label: c2 }, }