Type alias PolyHasOneDefinitionWithTargetRelationName

PolyHasOneDefinitionWithTargetRelationName: {
    discriminator?: undefined;
    foreignKey?: undefined;
    model: string;
    polymorphic: string;
    type: HAS_ONE;
}

The polymorphic "hasOne" relation with a target relation name.

Type declaration

  • Optional discriminator?: undefined
  • Optional foreignKey?: undefined
  • model: string
  • polymorphic: string
  • type: HAS_ONE

Example

{
type: RelationType.HAS_ONE,
model: 'model',
polymorphic: 'reference',
}

Generated using TypeDoc