getAssociationHierarchy

Function

associations are hierarchical in nature, e.g. there is always a parent and a child involved in the relationship.

given an entity type, this util returns the parent and children entity types that it can associate with

associations are hierarchical in nature, e.g. there is always a parent and a child involved in the relationship.

given an entity type, this util returns the parent and children entity types that it can associate with

Parameters

Parameter Type Default Notes
type Required HubEntityType

entity type

Returns

Property Type Notes
children HubEntityType[]
parents HubEntityType[]

Function defined in common/src/associations/internal/getAssociationHierarchy.ts:18