followEntity

Function

Follow an entity

Parameters

Parameter Type Default Notes
entityId Required string

entity id

user Required IUser

user who attempts to follow the entity

entityType Optional HubEntityType

optional if entityOrId is a string

context Optional IArcGISContext

optional if entityOrId is a string

Returns

promise that resolves { success: true, username: user.username } or rejects with an error

Promise<{
success:
boolean
username:
string
}>

Function defined in common/src/items/follow.ts:71