getIdsFromAssociationGroups

Function

given an array of groups, this util maps over them, and for each, determines if it's an association group by checking if it has a typeKeyword of the form |. If so, it extracts and returns the id which corresponds to the parent entity that this association group belongs to

given an array of groups, this util maps over them, and for each, determines if it's an association group by checking if it has a typeKeyword of the form |. If so, it extracts and returns the id which corresponds to the parent entity that this association group belongs to

  • getIdsFromAssociationGroups(groups: IGroup[], associationType: HubEntityType) : string[]

Parameters

Parameter Type Default Notes
groups Required IGroup[]

array of groups

associationType Required HubEntityType

entity type to extract ids for

Returns

string[]

Function defined in common/src/associations/internal/getIdsFromAssociationGroups.ts:16