Market.metafields matches keys in any case from Storefront API version 2027-01
From Storefront API 2027-01, Market.metafields matches requested keys in any case, as Market.metafield already does; this can break queries that rely on case-sensitive matching.

- Published
- 4 Dec 2026
- API version
- 2027-01
- Affects
- Storefront API
What changed
From Storefront API version 2027-01, the metafields field on the Market object matches each requested key in any case. Before that, Market.metafields returned a metafield only when the requested key and the stored key had the same case. This is marked as a breaking API change.
Market.metafield (singular) already matches keys in any case, so this change brings metafields into line with it. Until now, the two fields could return different results for the same key.
Example
A market stores a metafield with the namespace custom and the key colour. A query asks for { namespace: "custom", key: "Colour" }:
In
2026-10and earlier, the entry for that identifier isnull.In
2027-01, the entry returns the stored metafield.
Who is affected
The change applies to apps and custom storefronts that query metafields on a Market object, reached through Localization.market or Country.market, with Storefront API version 2027-01 or later.
Your app is affected only if one of these is true:
It requests a key in a different case from the key that the market stores.
The buyer's markets store the same key in different cases.
Not affected
Apps that request each key in the case that the markets store it.
Apps that use only
Market.metafield, which already matches keys in any case.Apps on versions
2026-10and earlier. Those versions don't change.
What to do
Market.metafield already matches keys in any case, and it returns the metafield from the buyer's most specific market. On the version you use today, Market.metafield therefore returns what Market.metafields will return in 2027-01. Comparing the two fields shows whether the change affects your app.
For each market metafield your app reads, query
Market.metafieldandMarket.metafieldswith the same namespace and key, and compare the results.If the results are the same for every key, you don't need to make any changes.
If a result differs, check whether the difference has a material impact on your app or storefront.
If it does, update your app and your metafields so they don't depend on the case of keys. Request each key in the case your markets store it, and use one case for each key on every market.
query CompareMarketMetafields @inContext(country: CA) {
localization {
market {
metafield(namespace: "custom", key: "Colour") {
key
value
}
metafields(identifiers: [{ namespace: "custom", key: "Colour" }]) {
key
value
}
}
}
}Deadline
Shopify has not announced a calendar deadline for this change. It takes effect for an app when that app moves to Storefront API version 2027-01. Apps that stay on 2026-10 or earlier see no change.
The versioning page lists 2027-01 as a release candidate with a release date of January 1, 2027. It lists 2026-10 as the latest stable version, accessible until October 16, 2027 15:00 UTC. The versioning page also says that release candidates may include backwards-incompatible changes and are not recommended for production.
The changelog post was published on November 13, 2026. That is the announcement date, not a deadline.
Get the weekly digest
One email every Monday: what changed in Shopify, the deadlines coming up and what’s been announced, plus the week’s new guides. Free, and you can unsubscribe in one click.
Sources
- Market.metafields matches keys in any case as of Storefront API version 2027-01 · Shopify · accessed 13 Nov 2026
- Market - Storefront API · Shopify.dev · accessed 13 Nov 2026
- About Shopify API versioning · Shopify.dev · accessed 13 Nov 2026
AI-assisted, reviewed by Scott. Every claim is checked against the sources above.