Comment
Represents a comment object, including its author and replies.
Type Definition
type Comment {
id: Int
customer: Customer
isAuthor: Boolean
parentCount: Int
comments: [Comment]
comment: String
createdAt: String
updatedAt: String
}Fields
Relationships
The Comment type represents a hierarchical comment structure. It maintains a relationship with the Customer type through the customer field, indicating who authored the comment. Comments can have nested replies through the comments field, which contains a list of child Comment objects, creating a threaded conversation structure.
Example
{
id
customer {
id
email
firstName
lastName
}
isAuthor
parentCount
comments {
id
comment
createdAt
}
comment
createdAt
updatedAt
}Implements
No interfaces implemented.