Type alias BelongsToManySetAssociationsMixin<TModel, TModelPrimaryKey>
Type Parameters
-
TModel extends Model
-
TModelPrimaryKey
Type declaration
-
- (newAssociations?: (TModel | TModelPrimaryKey)[], options?: BelongsToManySetAssociationsMixinOptions<TModel>): Promise<void>
-
Parameters
-
Optional
newAssociations: (TModel | TModelPrimaryKey)[]
-
Returns Promise<void>
The setAssociations mixin applied to models with belongsToMany. An example of usage is as follows:
See
Model.belongsToMany