---
title: "Comment"
description: "评论"
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/comment'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/comment.md'
---
# Comment

评论

- **API Version:** v20270301
- **API Type:** Storefront
- **API Protocol:** GraphQL
- **Operation Type:** Object

## Type Signature

`Comment`

## Fields

* `~~author~~`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  作者 [Deprecated]

* `authorV2`

  [CommentAuthor](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/comment-author.md)

  作者

* `content`

  [String](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/string.md)

  评论的正文，不带有HTML标记

* `contentHtml`

  [HTML](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/html.md)

  评论的正文，带有HTML标记

* `id`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common/scalars/id.md)

  评论id

## Schema Definition

```graphql
type Comment { 
	author: String
	authorV2: CommentAuthor
	content: String
	contentHtml: HTML
	id: ID 
}
```

## Field from

* [CommentEdge](https://developer.shopline.com/zh-hans-cn/docs/storefront-api/common-objects/objects/comment-edge.md).node

  节点

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes)。

