Skip to content

Content GraphQL

Each operation has its own page with its arguments, an example and the engines that serve it. The types link to their fields on the content types page.

Operations

OperationDescriptionServed by
articlesQueryOne 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.
catalogPageQueryFetch a catalog page (a product listing plus its surrounding content) by path.
catalogPageByFilterQueryThe curated collection page for exactly this category and facet filter, or null where there is none, so a filtered listing knows whether it may be indexed and which path is canonical.
contentPageQueryFetch a content page by path, e.g.
contentSearchQueryThe published pages and articles that match searchTerm, at most limit (and never more than 20), and where the CMS's keyword list sends the term.
contentSnippetQueryGet a specific content snippet by key.
messagesQueryThe store's fixed system copy, such as the text for an empty cart.
pageQueryFetch any page type by path, for a route that does not know which kind of page it will land on.
pagesQueryList pages with optional filtering and search, for sitemaps, navigation and content management.
redirectQueryWhere a path no page holds now sends a visitor, in the request's market: a redirect for its country before one for every market.
siteQueryThe store's settings: its header and footer menus, the selling points in the header bar and the SEO templates.
siteSettingsQueryThe store's settings: which page answers each recurring purpose, such as the contact or the returns page.
storeContentPreviewMutationStore content preview data for a path, so a CMS editor can preview unpublished changes.

Types

TypeDescription
ArticleListObjectArticle cards: the articles the editor picked, or else the newest that match its filters on section, topic and category.
ArticleOverviewPageObjectThe overview of one section of articles, such as a blog or the buying guides.
ArticlePageObjectAn article, such as a blog post, a buying guide or a news item: a page whose text owns it.
ArticleResultObjectOne page of articles, newest first.
AudienceTypeEnumWho a block is shown to.
AuthorObjectWho wrote an article, as the byline and the author markup name them.
BlockUnionRich text is also a block of its own, placed directly in a page body.
BrandObjectA brand.
BrandListObjectBrand logos that link to their brand pages, in the order the editor placed them.
CampaignBannerObjectA campaign: an image with the text beside it, not on it, and one call to action.
CatalogPageObjectRepresents a product listing page with its surrounding content.
CatalogPageFacetFilterObjectOne facet of a curated collection and the values it selects.
CatalogPageFacetFilterInputInput objectOne facet of a listing's filter and the values it selects.
CatalogPageLayoutTypeEnumHow a catalog page presents its category.
CategoryListObjectEntrances to categories: the ones the editor picked, or the children of one category.
ColumnEntryUnionRepresents content types that can be used in columns.
ColumnsObjectTwo to four blocks side by side, stacked in their order on a narrow screen.
ColumnsRatioTypeEnumHow the width is shared between two columns, in the order they are placed.
ContentAssetObjectRepresents a content asset, such as an image or file.
ContentPageObjectRepresents a content page with various sections and blocks.
ContentSearchHitObjectA page or an article that matches a search.
ContentSearchResultObjectWhat the CMS answers to a search term.
ContentSnippetObjectRepresents a snippet of content that can be used in various places.
ContentTeaserObjectAn image beside text, or text alone, with up to two links.
ContentVersionTypeEnumSpecifies different versions of content.
FaqObject
FaqGroupObject
FaqItemObject
FigureObjectOne key figure: a value with what it measures.
FigureListObjectTwo to four key figures.
FocalPointObjectA point in an image, in percent from its left and top edges.
HotspotObjectOne product pinned on a shoppable image.
ImageObjectOne image, or a pair side by side.
LinkObjectA link with its own label, to one target: a page, a product, a storefront route or a URL.
LinkVariantTypeEnumHow prominently a link is drawn.
MenuItemObjectOne menu entry: a link, or a heading for the entries below it.
MessagesObjectThe store's fixed system copy, one entry per store, for the places no editor fills by hand.
NavigationObjectA menu: the header's, the footer's, or one of the project's own.
PageInterfaceA page a route can land on.
PageRedirectObjectWhere a path sends a visitor: written by an editor, or by the CMS when a page's path changed, from the old path to the page.
PageSortOrderTypeEnumSpecifies sorting options for pages.
PagesResultObjectRepresents the result of a query for multiple pages.
PaymentBrandTypeEnumA way to pay the store accepts, which the site draws as that brand's logo.
ProductObjectProduct entity containing all product information, variants, and metadata.
ProductCategoryObjectRepresents a category of products.
ProductListObjectProducts, either the variants the editor picked or those a source selects.
PromoObjectA card that links somewhere.
PromoListObjectTwo to four promo cards side by side.
ResourceLinkObjectRepresents a link to a resource, either internal or external.
ResourceLinkTypeEnumSpecifies different types of resource links.
RichTextObjectFormatted text, the same whichever CMS wrote it.
RichTextEmbedUnionWhat rich text can embed.
RichTextImageEmbedObjectAn image placed in rich text.
RichTextLinkObjectA link in rich text, resolved by the adapter.
RichTextProductEmbedObjectA product placed in rich text, by its sku.
RichTextPromoEmbedObjectA promo placed in rich text.
RichTextShoppableImageEmbedObjectA shoppable image placed in rich text.
RichTextTipEmbedObjectA tip placed in rich text.
RichTextVideoEmbedObjectA video placed in rich text.
ShoppableImageObjectOne image with two to six products pinned on it, also listed beside or below it.
SiteObjectThe store's settings, one per store: its menus, the selling points in the header bar, its social profiles, payment brands and review rating, and the templates the SEO title and description of a page fall back to.
SiteSettingsObjectWhich page of the site answers each recurring purpose, such as the contact or the returns page, one entry per store.
SocialLinkObjectThe store's profile on a social network; the site draws the network's icon.
SocialPlatformTypeEnumA social network a store keeps a profile on.
StepObjectOne step of a step list.
StepListObjectTwo to four numbered steps, such as how an account, a return or a job works.
StoreContentPreviewDataObjectRepresents data for storing content previews.
StoreContentPreviewErrorUnion
StoreContentPreviewResponseObject
StorefrontRouteTypeEnumA page the storefront itself serves rather than the CMS.
TableOfContentsObjectLinks to the anchors on the page.
TipObjectA highlighted tip, in a page body or inside rich text.
TopicObjectWhat an article is about, such as tennis or maintenance.
TopicPageObjectA topic's page below a section of articles.
TranslatedPathObjectRepresents a translated path for a specific locale.
TrustRatingObjectThe store's average review score at a review service, such as 9.2 out of 10 from 1,284 reviews, as an editor entered it.
UspObjectRepresents a single Unique Selling Point (USP).
UspIconTypeEnumThe icon a selling point shows, from a fixed set the storefront maps to its own glyphs.
UspListObjectThe store's selling points, two to six of them.
VideoObjectA YouTube video, played from the privacy-enhanced domain once the visitor consents.
YoutubeVideoObjectA YouTube video embedded in rich text.