enrichContent

Function

Enrich content by fetching missing (or specified) enrichments and adding them as properties.

To only fetch specific enrichments, pass an array of property names as the second

Enrich content by fetching missing (or specified) enrichments and adding them as properties.

To only fetch specific enrichments, pass an array of property names as the second

Parameters

Parameter Type Default Notes
content Required IHubContent

content to enrich

requestOptions Optional IEnrichContentOptions

request options which may include a list of specific enrichments to fetch

Available requestOptions

Property Type Notes
layerId Optional number
enrichments Optional Inherited string[]

comma separated list of enrichment (property) names to fetch if omitted, the default enrichments will be fetched to skip fetching enrichments, pass an empty array []

Returns

a new content with enriched properties added

Promise<any>

Function defined in content/src/enrichments.ts:568