Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Relation

Represents relationships between two resources, eg. one-one or one-many.

Hierarchy

  • Relation

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Relation(kind: RelationKind, otherType: string, myField: string, otherField: string): Relation
  • Parameters

    • kind: RelationKind
    • otherType: string
    • myField: string
    • otherField: string

    Returns Relation

Properties

kind

kind: RelationKind

myField

myField: string

otherField

otherField: string

otherType

otherType: string

Methods

serialize

  • serialize(): obj<unknown>