# Comment Represents a comment object, including its author and replies. ## Type Definition ```graphql type Comment { id: Int customer: Customer 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. | | 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. 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 ```graphql { id customer { id email firstName lastName } isAuthor parentCount comments { id comment createdAt } comment createdAt updatedAt } ``` ## Implements No interfaces implemented. ## Related Types - [Customer](/reference/storefront/v1/objects/customer) - [Comment](/reference/storefront/v1/objects/comment)