Skip to Content

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

FieldTypeDescription
idIntUnique identifier for this comment.
customerCustomerThe customer who posted this comment, or false if not a customer.
isAuthorBooleanWhether the comment poster is the blog author.
parentCountIntNumber of parent comments for this comment.
comments[Comment]List of replies to this comment.
commentStringThe comment text content.
createdAtStringRFC 2822 formatted timestamp when the comment was created.
updatedAtStringRFC 2822 formatted timestamp when the comment was last updated.

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.