Skip to content

messages

Queryin Content

The store's fixed system copy, such as the text for an empty cart. Null where the store has no messages entry.

Arguments

ArgumentTypeDescription
versionContentVersionType
previewIdString

Returns

Messages

FieldTypeDescription
idID!Unique identifier for the messages.
cartEmptyRichTextShown in a cart without line items.
searchEmptyRichTextShown when a search finds nothing.
notFoundRichTextShown on the page for a path nothing answers.

Example

query Messages($version: ContentVersionType, $previewId: String) {
messages(version: $version, previewId: $previewId) {
id
cartEmpty {
id
document
}
searchEmpty {
id
document
}
notFound {
id
document
}
}
}

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: