enrichEntity

Function

Function to enrich an entity with information that requires an additional XHR

Function to enrich an entity with information that requires an additional XHR

Parameters

Parameter Type Default Notes
entity Required HubEntity

Hub entity

include Required string[]

Array of enrichment strings

requestOptions Required IHubRequestOptions

Hub request options

Available requestOptions

Property Type Notes
authentication Optional ArcGISIdentityManager
fetch Optional function(input: RequestInfo, init: RequestInit) : Promise<Response>

The implementation of fetch to use. Defaults to a global fetch.

hubApiUrl Optional string
isPortal Optional boolean
portalSelf Optional IHubRequestOptionsPortalSelf

Returns

Promise<>

Function defined in common/src/core/enrichEntity.ts:23