Skip to main content

StorefrontThemeState

The organization's storefront theme: its saved draft and the version buyers see.

type StorefrontThemeState {
draft: JSON
liveDraftUpdatedAt: String
liveVersion: StorefrontThemeVersionSummary
updatedAt: DateTime
}

Fields​

StorefrontThemeState.draft ● JSON scalar​

The editor's saved draft (a StorefrontDraft document from @arc/theme-engine). Null when nothing has been saved yet.

StorefrontThemeState.liveDraftUpdatedAt ● String scalar​

The updatedAt inside the live version's document. When it equals the draft's own updatedAt, the draft on screen is exactly what buyers see. Null until the first publish.

StorefrontThemeState.liveVersion ● StorefrontThemeVersionSummary object​

The version buyers see. Null until the first publish.

StorefrontThemeState.updatedAt ● DateTime scalar​

When the draft was last saved.

Returned By​

storefrontTheme query