Real-time Updates
Live objects and collections for instant comment synchronization
Threaded Discussions
Support for nested replies and complex conversation structures
Multimedia Comments
Text, images, and rich media attachments in comments
Comments support Live Objects and real-time events, providing automatic updates when comments are added, edited, or deleted across all connected clients.
Comment Reference Types
Comments can be associated with different types of content, providing contextual discussions based on the content type.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 |
Key Features
Comment Creation
Create text comments, image comments, or mixed content with optimistic updates and validation.
Comment Retrieval
Query and filter comments with advanced options, pagination, and real-time synchronization.
Threading & Replies
Build nested conversation threads with unlimited reply depth and proper organization.
Reactions & Engagement
Enable user engagement through reactions, mentions, and social interaction features.
Content Moderation
Edit, delete, flag, and moderate comments with comprehensive administrative controls.
Real-time Updates
Automatic synchronization across all clients with live objects and real-time events.
Comment Properties
Understanding comment data structure helps in building robust commenting systems.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) |