Comment

Show definition
type Comment implements Node {
  # Globally unique identifier.
  id: ID!

  # The comment’s author.
  author: CommentAuthor!

  # Stripped content of the comment, single line with HTML tags removed.
  content(
    # Truncates string after the given length.
    truncateAt: Int
  ): String!

  # The content of the comment, complete with HTML formatting.
  contentHtml: HTML!
}

Implements

Fields

author   (CommentAuthor!)

The comment’s author.

content   (String!)

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

Argument Type Default Description
truncateAt Int

Truncates string after the given length.

contentHtml   (HTML!)

The content of the comment, complete with HTML formatting.

id   (ID!)

Globally unique identifier.