Markets query: market "conditions" field is null in production store

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?

1 Like

Hey @Nic_Oliver, which API version did you use for the request in your live store? MarketConditions - GraphQL Admin is available on 2025-04 and higher so it should be returned if that was used.

@KyleG-Shopify 2025-04

Thanks Nic

Can you share a little bit about how you have the market set up in your live store, so I can replicate that on my end?

@KyleG-Shopify Here’s an example market config from the live store:

Let me know if there are any other specific details that I can provide.

Thanks for sharing that. Testing on my end, the conditions are returning for me as well.

Can you share the x-request-id from the request where it returns empty?

I believe the issue may be the fact that my dev store was automatically updated to “Unified markets”, as this returns true for my dev store, but false on the live store.

query shopFeatures {
  shop {
    features {
      unifiedMarkets
    }
  }
}

I found this documentation, which seems to align: Checking for eligibility to the new markets experience