Skip to Content

Comment

Represents a comment object, including its author and replies.

Type Definition

type Comment { id: Int customer: Customer name: String 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.
nameStringThe display name of the comment author.
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 where comments can have replies. Each comment is associated with a Customer object that represents the author. Comments can contain nested replies through the comments field, allowing for threaded comment discussions. The parentCount field indicates the depth of the comment within the hierarchy.

Example

{ id customer { id email firstName lastName } name isAuthor parentCount comment createdAt updatedAt comments { id name comment createdAt } }

Implements

None