Skip to main content
query

Returns a Comment resource by ID.

•ID!
required

The ID of the Comment to return.


Was this section helpful?

•Comment

A comment on an article.

•Article

The article associated with the comment.

•CommentAuthor!
non-null

The comment’s author.

•String!
non-null

The content of the comment.

•HTML!
non-null

The content of the comment, complete with HTML formatting.

•DateTime!
non-null

The date and time when the comment was created.

•EventConnection!
non-null

The paginated list of events associated with the host subject.

Arguments

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.

•EventSortKeys
Default:ID

Sort the underlying list using a key. If your query is slow or returns an error, then try specifying a sort key that matches the field used in the search.

•String

A filter made up of terms, connectives, modifiers, and comparators. You can apply one or more filters to a query. Learn more about Shopify API search syntax.

•string

The action that occured.

Example:

  • action:create
Anchor to comments
•boolean

Whether or not to include comment-events in your search, passing false will exclude comment-events, any other value will include comment-events.

Example:

  • false
  • true
Anchor to created_at
•time

Filter by the date and time when the event happened.

Example:

  • created_at:>2020-10-21
  • created_at:<now
•id

Filter by id range.

Example:

  • id:1234
  • id:>=1234
  • id:<=1234
Anchor to subject_type
•string

The resource type affected by this event. See EventSubjectType for possible values.

Example:

  • PRODUCT_VARIANT
  • PRODUCT
  • COLLECTION

•ID!
non-null

A globally-unique ID.

•String

The IP address of the commenter.

•Boolean!
non-null

Whether or not the comment is published.

•DateTime

The date and time when the comment was published.

•CommentStatus!
non-null

The status of the comment.

•DateTime

The date and time when the comment was last updated.

•String

The user agent of the commenter.


Was this section helpful?