useUpvoteEntity
Overview
TheuseUpvoteEntity hook provides a way to upvote an entity.
Usage Example
Parameters & Returns
Parameters
TheupvoteEntity function returned by the hook accepts a single object with the following field:
The ID of the entity to be upvoted.
Returns
The function returns aPromise<Entity> representing the API response:
The updated entity after it is successfully upvoted.

