Skip to main content

useUpvoteEntity

Overview

The useUpvoteEntity hook provides a way to upvote an entity.

Usage Example

Parameters & Returns

Parameters

The upvoteEntity function returned by the hook accepts a single object with the following field:
entityId
string
The ID of the entity to be upvoted.

Returns

The function returns a Promise<Entity> representing the API response:
response
Entity
The updated entity after it is successfully upvoted.