Type alias HasManyGetAssociationsMixin<T>

HasManyGetAssociationsMixin<T>: ((options?: HasManyGetAssociationsMixinOptions<T>) => Promise<T[]>)

Type Parameters

Type declaration

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

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

      User.hasMany(Role);

      See

      Model.hasMany

      Parameters

      Returns Promise<T[]>

Generated using TypeDoc