Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "decorator/relations/ManyToMany"

Index

Functions

Functions

ManyToMany

  • ManyToMany<T>(typeFunction: function, options?: RelationOptions): Function
  • ManyToMany<T>(typeFunction: function, inverseSide?: string | function, options?: RelationOptions): Function
  • Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage entity1 and entity2 ids. This is owner side of the relationship.

    Type parameters

    • T

    Parameters

    Returns Function

  • Many-to-many is a type of relationship when Entity1 can have multiple instances of Entity2, and Entity2 can have multiple instances of Entity1. To achieve it, this type of relation creates a junction table, where it storage entity1 and entity2 ids. This is owner side of the relationship.

    Type parameters

    • T

    Parameters

    • typeFunction: function
    • Optional inverseSide: string | function
    • Optional options: RelationOptions

    Returns Function

Generated using TypeDoc