postgrelize / Includeable
Type Alias: Includeable ​
Includeable =
Model|Association|string|IncludeOptions
Defined in: src/associations/include.ts:105
One entry of the include option (Sequelize v6 Includeable): a model, an association (or its alias), include options, or { all: true } for every association of the model.
See ​
Example ​
ts
const entries: Includeable[] = [Post, 'profile', { model: Tag, required: false }, { all: true }];
const users = await User.findAll({ include: entries });