Article
Represents an article object with content, author, and comment information.
Type Definition
type Article {
seoDescription: String
seoTitle: String
seoKeywords: String
handle: String
headerImage: String
author: Author
id: Int
title: String
content: String
summary: String
comments: [Comment]
commentsCount: Int
blog: Blog
isPublished: Boolean
commentsAreEnabled: Boolean
commentsRequireAccount: Boolean
commentsRequireApproval: Boolean
accountOwner: Boolean
url: String
createdAt: String
updatedAt: String
}Fields
Relationships
The Article type represents a published or draft article within a blog. Each article belongs to a Blog and contains metadata for search engine optimization. Articles can have an associated Author and a collection of published Comment objects if commenting is enabled. The article’s SEO fields provide metadata for search engines, while the handle and URL fields provide accessible identifiers for the article.
Example
query {
article(id: 12345) {
id
title
content
summary
handle
url
seoTitle
seoDescription
seoKeywords
author {
name
}
blog {
title
}
comments {
id
body
}
commentsCount
isPublished
createdAt
updatedAt
}
}Implements
None