Reactions
Let users react to messages, posts, and comments, which are visible to others.
Reactions are the interactions that user can perform with message, post or comment. The interactions can be anything such as like, dislike, love etc. It's up to the client to determine the type of reactions.

Reaction Description

Name
Data Type
Description
Attributes
reactionId
String
ID of a reaction
referenceId
String
ID of a document
referenceType
String
Type of document
userId
String
ID of the creator
reactionName
String
Name of reaction
'like', 'love' , 'wow'
createdAt
String($date-time)
Date/time when a reaction is created

Reaction Data

Each post, comment, message has a set of fields providing detailed info about reactions.
  • reactionsCount - how many reactions the post has
  • myReactions - list of reactions you added to the post
  • reactions - map that tells how many reactions of a certain type a post has

Add Reaction

You can add any number of reactions to the given message. The addReaction method accepts reaction name, where the reaction name is case sensitive, i.e "like" & "Like" are two different reactions.

Remove Reaction

You can remove any reactions added to the post. The removeReaction method removes reaction name. Reaction name is case sensitive in this case too.

Query Reaction

You can query reactions using the queryReactions method.
For more details about Reacting on a comment, refer Comment Query
Export as PDF
Copy link
Outline
Reaction Description
Reaction Data
Add Reaction
Remove Reaction
Query Reaction