---
title: Comment - Storefront API
description: A comment on an article.
api_version: 2025-04
api_name: storefront
type: object
api_type: graphql
source_url:
  html: 'https://shopify.dev/docs/api/storefront/2025-04/objects/Comment'
  md: 'https://shopify.dev/docs/api/storefront/2025-04/objects/Comment.md'
---

# Comment

object

Requires `unauthenticated_read_content` access scope.

A comment on an article.

## Fields

* author

  [Comment​Author!](https://shopify.dev/docs/api/storefront/2025-04/objects/CommentAuthor)

  non-null

  The comment’s author.

* content

  [String!](https://shopify.dev/docs/api/storefront/2025-04/scalars/String)

  non-null

  Stripped content of the comment, single line with HTML tags removed.

  * truncate​At

    [Int](https://shopify.dev/docs/api/storefront/2025-04/scalars/Int)

    ### Arguments

    Truncates a string after the given length.

  ***

* content​Html

  [HTML!](https://shopify.dev/docs/api/storefront/2025-04/scalars/HTML)

  non-null

  The content of the comment, complete with HTML formatting.

* id

  [ID!](https://shopify.dev/docs/api/storefront/2025-04/scalars/ID)

  non-null

  A globally-unique ID.

***

## Map

### Fields and connections with this object

* [Article.comments](https://shopify.dev/docs/api/storefront/2025-04/objects/Article#field-Article.fields.comments)
* [CommentConnection.nodes](https://shopify.dev/docs/api/storefront/2025-04/connections/CommentConnection#returns-nodes)
* [CommentEdge.node](https://shopify.dev/docs/api/storefront/2025-04/objects/CommentEdge#field-CommentEdge.fields.node)

***

## Interfaces

* [Node](https://shopify.dev/docs/api/storefront/2025-04/interfaces/Node)

  interface

***

## Comment Implements

### Implements

* [Node](https://shopify.dev/docs/api/storefront/2025-04/interfaces/Node)
