The getAssociation mixin applied to models with belongsTo. An example of usage is as follows:
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare getRole: BelongsToGetAssociationMixin<Role>;}User.belongsTo(Role); Copy
class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> { declare getRole: BelongsToGetAssociationMixin<Role>;}User.belongsTo(Role);
Optional
Model.belongsTo
The getAssociation mixin applied to models with belongsTo. An example of usage is as follows: