Skip to content

siteSettings

Queryin Content

The store's settings: which page answers each recurring purpose, such as the contact or the returns page. Null where the store has no settings entry.

Arguments

ArgumentTypeDescription
versionContentVersionType
previewIdString

Returns

SiteSettings

FieldTypeDescription
contactPageContentPageThe page to contact the store.
termsPageContentPageThe terms and conditions.
privacyPageContentPageThe privacy statement.
cookiePageContentPageThe cookie statement.
returnsPageContentPageHow returns work.
shippingPageContentPageHow shipping works, its costs and delivery times.

Example

query SiteSettings($version: ContentVersionType, $previewId: String) {
siteSettings(version: $version, previewId: $previewId) {
contactPage {
id
name
heading
headingVisible
path
intro
}
termsPage {
id
name
heading
headingVisible
path
intro
}
privacyPage {
id
name
heading
headingVisible
path
intro
}
cookiePage {
id
name
heading
headingVisible
path
intro
}
returnsPage {
id
name
heading
headingVisible
path
intro
}
shippingPage {
id
name
heading
headingVisible
path
intro
}
}
}

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

Used by

The storefront packages that send it, in these GraphQL documents: