Article

Show definition
type Article implements Node {
  id: ID!

  # The article's author.
  author: ArticleAuthor!

  # The blog that the article belongs to.
  blog: Blog!

  # List of comments posted on the article.
  comments(first: Int!, after: String, reverse: Boolean = false): CommentConnection!

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

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

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

  # The excerpt of the article, complete with HTML formatting.
  excerptHtml: HTML

  # The image associated with the article.
  image(
    # Image width in pixels between 1 and 2048
    maxWidth: Int

    # Image height in pixels between 1 and 2048
    maxHeight: Int

    # If specified, crop the image keeping the specified region
    crop: CropRegion

    # Image size multiplier retina displays. Must be between 1 and 3
    scale: Int = 1
  ): Image

  # The date and time when the article was published.
  publishedAt: DateTime!

  # A categorization that a article can be tagged with.
  tags: [String!]!

  # The article’s name.
  title: String!

  # The url pointing to the article accessible from the web.
  url: URL!
}

Implements

Connections

comments   (CommentConnection!)

List of comments posted on the article.

Argument Type Default Description
after String
first required Int
reverse Boolean false

Fields

author   (ArticleAuthor!)

The article's author.

blog   (Blog!)

The blog that the article belongs to.

content   (String!)

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

Argument Type Default Description
truncateAt Int

Truncates string after the given length.

contentHtml   (HTML!)

The content of the article, complete with HTML formatting.

excerpt   (String)

Stripped excerpt of the article, single line with HTML tags removed.

Argument Type Default Description
truncateAt Int

Truncates string after the given length.

excerptHtml   (HTML)

The excerpt of the article, complete with HTML formatting.

id   (ID!)

image   (Image)

The image associated with the article.

Argument Type Default Description
crop CropRegion

If specified, crop the image keeping the specified region

maxHeight Int

Image height in pixels between 1 and 2048

maxWidth Int

Image width in pixels between 1 and 2048

scale Int 1

Image size multiplier retina displays. Must be between 1 and 3

publishedAt   (DateTime!)

The date and time when the article was published.

tags   ([String!]!)

A categorization that a article can be tagged with.

title   (String!)

The article’s name.

url   (URL!)

The url pointing to the article accessible from the web.