The getAssociation mixin applied to models with belongsTo. An example of usage is as follows:
User.belongsTo(Role); interface UserInstance extends Sequelize.Instance<UserInstance, UserAttrib>, UserAttrib { getRole: Sequelize.BelongsToGetAssociationMixin<RoleInstance>; // setRole... // createRole... }
http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
Instance
Get the associated instance.
The options to use when getting the association.
Generated using TypeDoc
The getAssociation mixin applied to models with belongsTo. An example of usage is as follows:
User.belongsTo(Role); interface UserInstance extends Sequelize.Instance<UserInstance, UserAttrib>, UserAttrib { getRole: Sequelize.BelongsToGetAssociationMixin<RoleInstance>; // setRole... // createRole... }
http://docs.sequelizejs.com/en/latest/api/associations/belongs-to/
Instance