Skip to content

articles

Queryin Content

One page of the published articles, newest first: those in a section, about a topic and with a category, where each is given; with none of them, every article. For an overview's grid and a topic's page. An article in the result has an empty related list; query that article by its path for its related ones.

Arguments

ArgumentTypeDescription
sectionIDThe id of the overview whose articles to list.
topicIDThe id of a topic the articles are about.
categoryStringThe key of a product category the articles are linked to.
pageInt!Default 1
pageSizeInt!Default 12

Returns

ArticleResult!

FieldTypeDescription
items[ArticlePage!]!
paginationPagination!

Example

query Articles(
$section: ID
$topic: ID
$category: String
$page: Int!
$pageSize: Int!
) {
articles(
section: $section
topic: $topic
category: $category
page: $page
pageSize: $pageSize
) {
items {
id
name
heading
path
title
lead
publishedAt
}
pagination {
page
pageSize
totalCount
pageCount
hasNextPage
hasPreviousPage
}
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.