Given the following query:
query Markets($first: Int, $last: Int, $after: String, $before: String) {
markets(first: $first, last: $last, before: $before, after: $after) {
nodes {
id
handle
name
status
regions(first: 1) {
nodes {
... on MarketRegionCountry {
code
}
}
}
conditions {
conditionTypes
regionsCondition {
regions(first: 1) {
nodes {
... on MarketRegionCountry {
code
}
}
}
}
}
}
pageInfo {
hasPreviousPage
hasNextPage
startCursor
endCursor
}
}
}
On my development store, I get this response:
"data": {
"markets": {
"nodes": [
{
"id": "gid://shopify/Market/85739241794",
"handle": "ca",
"name": "Canada",
"status": "ACTIVE",
"regions": {
"nodes": [
{
"code": "CA"
}
]
},
"conditions": {
"regionsCondition": {
"regions": {
"nodes": [
{
"code": "CA"
}
]
}
}
}
}
]
}
},
However in production, I get this:
"data": {
"markets": {
"nodes": [
{
"id": "gid://shopify/Market/37688606873",
"handle": "eu",
"name": "eu",
"status": "ACTIVE",
"regions": {
"nodes": [
{
"code": "FR"
}
]
},
"conditions": null
}
]
}
},
The regions
field is now deprecated in 2025-04, but using conditions
does not seem viable yet. Is this a bug, or is there a specific reason that the conditions are null?