# Comment Represents a comment object, including its author and replies. ## Type Definition ```graphql type Comment { id: Int customer: Customer name: String isAuthor: Boolean parentCount: Int comments: [Comment] comment: String createdAt: String updatedAt: String } ``` ## Fields | Field | Type | Description | |-------|------|-------------| | id | Int | Unique identifier for this comment. | | customer | Customer | The customer who posted this comment, or false if not a customer. | | name | String | The display name of the comment author. | | isAuthor | Boolean | Whether the comment poster is the blog author. | | parentCount | Int | Number of parent comments for this comment. | | comments | [Comment] | List of replies to this comment. | | comment | String | The comment text content. | | createdAt | String | RFC 2822 formatted timestamp when the comment was created. | | updatedAt | String | RFC 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 ```graphql { id customer { id email firstName lastName } name isAuthor parentCount comment createdAt updatedAt comments { id name comment createdAt } } ``` ## Implements None ## Related Types - [Customer](/reference/storefront/1.3.0/objects/customer) - [Comment](/reference/storefront/1.3.0/objects/comment)