getIdsFromKeywords

Function

given a hub entity, this util maps over its typeKeywords, and for each, determines if it is an association typeKeyword by checking whether it has the form ref||. If so, it extracts and returns the id which correspond to the parent entity that this entity is associated with.

given a hub entity, this util maps over its typeKeywords, and for each, determines if it is an association typeKeyword by checking whether it has the form ref||. If so, it extracts and returns the id which correspond to the parent entity that this entity is associated with.

Parameters

Parameter Type Default Notes
entity Required HubEntity

hub entity to extract ids from

associationType Optional HubEntityType

entity type to extract ids for

Returns

string[]

Function defined in common/src/associations/internal/getIdsFromKeywords.ts:15