Market Web Presence
Requires for queries and both
as well as
for mutations.
The market’s web presence, which defines its SEO strategy. This can be a different domain
(e.g. example.ca
), subdomain (e.g. ca.example.com
), or subfolders of the primary
domain (e.g. ). Each web presence comprises one or more language
variants. If a market does not have its own web presence, it is accessible on the shop’s
primary domain via country
selectors.
Note: while the domain/subfolders defined by a market’s web presence are not applicable to custom storefronts, which must manage their own domains and routing, the languages chosen here do govern the languages available on the Storefront API for the countries in this market.
Anchor to Fields and connectionsFields and connections
- Anchor to alternateLocalesalternate•[Shop
Locales Locale!]! non-null The ShopLocale object for the alternate locales. When a domain is used, these locales will be available as language-specific subfolders. For example, if English is an alternate locale, and
example.ca
is the market’s domain, thenwill load in English.
- Anchor to defaultLocaledefault•Shop
Locale Locale! non-null The ShopLocale object for the default locale. When a domain is used, this is the locale that will be used when the domain root is accessed. For example, if French is the default locale, and
example.ca
is the market’s domain, thenexample.ca
will load in French.- Anchor to domaindomain•Domain
The web presence’s domain. This field will be null if
isn't null.
- •ID!non-null
A globally-unique ID.
- Anchor to marketsmarkets•Market
Connection The associated markets for this web presence.
- Anchor to rootUrlsroot•[Market
Urls Web Presence Root Url!]! non-null The list of root URLs for each of the web presence’s locales. As of version
2024-04
this value will no longer have a trailing slash.- Anchor to subfolderSuffixsubfolder•String
Suffix The market-specific suffix of the subfolders defined by the web presence. Example: in
/en-us
the subfolder suffix isus
. This field will be null ifdomain
isn't null.- Anchor to marketmarket•MarketDeprecated
Anchor to MutationsMutations
- •mutation
Creates a web presence.
- Anchor to inputinput•Web
Presence Create Input! required The details of the web presence to be created.
Arguments
- Anchor to userErrorsuser•[Market
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to webPresenceweb•Market
Presence Web Presence The created web presence object.
Fields
- •mutation
Updates a web presence.
- •ID!required
The ID of the web presence to update.
- Anchor to inputinput•Web
Presence Update Input! required The web presence properties to update.
Arguments
- Anchor to userErrorsuser•[Market
Errors User Error!]! non-null The list of errors that occurred from executing the mutation.
- Anchor to webPresenceweb•Market
Presence Web Presence The web presence object.
Fields
- •ID!