getReferencedEntityIds
The following util returns an array of ids that the provided
entity "references" via a typeKeyword of the form ref|
Note: if a specific associationType is not provided, this util will return ALL the ids that the provided entity "references"
Additional context: the model for associations is built around platform capabilities. Platform imposes a limit of 128 on the number of typeKeywords that can be set on an item. Since "child" entities form their half of an association connection via typeKeywords, we must limit the number of associations a child can request or accept to far fewer than 128. For now, we are imposing a limit of 50. From the application, we can then use this util to determine if a child has already reached the limit
The following util returns an array of ids that the provided
entity "references" via a typeKeyword of the form ref|
Note: if a specific associationType is not provided, this util will return ALL the ids that the provided entity "references"
Additional context: the model for associations is built around platform capabilities. Platform imposes a limit of 128 on the number of typeKeywords that can be set on an item. Since "child" entities form their half of an association connection via typeKeywords, we must limit the number of associations a child can request or accept to far fewer than 128. For now, we are imposing a limit of 50. From the application, we can then use this util to determine if a child has already reached the limit
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
entity Required | HubEntity |
hub entity to extract ids from |
|
associationType Optional | HubEntityType |
entity type to extract reference ids for |
Returns
Function defined in common/src/associations/getReferencedEntityIds.ts:24