unfollowEntity

Function

Unfollow an entity

Parameters

Parameter Type Default Notes
entityId Required string

entity id

user Required IUser

user who attempts to unfollow 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:113