Type alias BelongsToManyGetAssociationsMixin<T>

BelongsToManyGetAssociationsMixin<T>: ((options?: BelongsToManyGetAssociationsMixinOptions<T>) => Promise<T[]>)

Type Parameters

Type declaration

    • (options?: BelongsToManyGetAssociationsMixinOptions<T>): Promise<T[]>
    • The getAssociations mixin applied to models with belongsToMany. An example of usage is as follows:

      class User extends Model<InferAttributes<User>, InferCreationAttributes<User>> {
      declare getRoles: BelongsToManyGetAssociationsMixin<Role>;
      }

      User.belongsToMany(Role, { through: UserRole });

      See

      Model.belongsToMany

      Parameters

      Returns Promise<T[]>

Generated using TypeDoc