Skip to main content

RelationKind

@webda/sql-schema


Type Alias: RelationKind

RelationKind = "parent" | "link" | "linksSimpleArray" | "linksArray" | "linksMap" | "query" | "map"

Defined in: packages/sql-schema/src/plan.ts:103

Kind of a relation, from Metadata.Relations (the compiler records the aliases as the type they resolve to)

  • parent: ModelParent / BelongTo
  • link: ModelLink / RelateTo / ManyToOne / OneToOne
  • linksSimpleArray: ModelLinksSimpleArray
  • linksArray: ModelLinksArray / ManyToMany / Contains
  • linksMap: ModelLinksMap
  • query: ModelRelated / OneToMany, the reverse side of a link: no storage
  • map: ModelsMapped, denormalized copies: no storage