The Comment object is structured with multiple fields representing the attributes of a comment within a post conversation.

This structure allows for comments to be organized in a hierarchy with Parent and Child Comments, where each Comment may have attributes indicating its interactivity, visibility, and its relationship to other Comments and Posts in the system.

├── post
│   ├── parent comment
│   │   ├── child comment
│   │   │   ├── child comment
│   │   ├── child comment
└── post

Below are the details of the Comment object’s structure:

id
string

Unique identifier for the Comment.

post
Post

Reference to the Post to which the Comment is associated.

commentBy
Member

Information about the Member who created the Comment.

desc
string

The content of the Comment.

pinned
boolean

A flag denoting whether the Comment is pinned.

statusUpdateComment
boolean

Specifies if the Comment is related to a status update.

isDeleted
boolean

Shows if the Comment has been marked as deleted.

isMerged
boolean

Indicates if the Comment is a result of merging multiple comments.

parentCommentId
string | null

The ID of the parent Comment if this is a reply (Child Comment).

likesCount
number

The number of likes on the Comment.

childCommentsCount
number

The count of replies (Child Comments) to this Comment.

createdAt
Date

The date and time when the Comment was created.