Type alias HasManyDefinition

HasManyDefinition: {
    discriminator?: undefined;
    foreignKey: string;
    model: string;
    polymorphic?: false;
    type: HAS_MANY;
}

The regular "hasMany" relation.

Type declaration

  • Optional discriminator?: undefined
  • foreignKey: string
  • model: string
  • Optional polymorphic?: false
  • type: HAS_MANY

Example

{
type: RelationType.HAS_MANY,
model: 'model',
foreignKey: 'modelId',
}

Generated using TypeDoc