Enable rich, interactive discussions with comprehensive comment functionality and real-time updates
Reference Type | Description | Use Cases |
---|---|---|
post | Comments on regular user posts | Social media feeds, status updates, photo sharing |
story | Comments on story content | Temporary content, social stories, time-limited posts |
content | Comments on specialized content | Articles, documents, media galleries, custom content |
Property | Type | Description |
---|---|---|
commentId | String | Unique identifier for the comment |
userId | String | ID of the user who posted the comment |
parentId | String? | ID of parent comment (for threaded replies) |
referenceId | String | ID of the content being commented on |
referenceType | String | Type of content (post, story, content) |
dataType | String | Type of comment content (text, image) |
data | Object | Main content body of the comment |
metadata | Object | Additional custom properties and fields |
childrenCount | Number | Number of reply comments |
reactionsCount | Integer | Total number of reactions on the comment |
myReactions | Array | Current user’s reactions to the comment |
isDeleted | Boolean | Whether the comment has been deleted |
createdAt | DateTime | Comment creation timestamp |
editedAt | DateTime | Last edit timestamp (if edited) |