Incorrect deprecation warnings for `markets` query in v2025-01

After upgrading to API v2025-01 I started getting deprecation warnings for market enabled and regions fields. Warnings referring to non existing fields (status and conditions.regionConditions) so it’s not possible to fix them.

Documentation doesn’t mention deprecation of enabled field but does mentions deprecation of regions without replacement. I guess it’s either a mistake or premature deprecation.

Example query:

{
  markets(first: 50) {
    nodes {
      id
      name
      enabled
      regions(first: 50) {
        nodes {
          ... on MarketRegionCountry {
            code
          }
        }
      }
    }
  }
}


3 Likes

Got a same problem.
Thanks

Still have this problem, I also noticed that the Shopify admin uses the query that is supposed to be deprecated at /settings/markets:

query AllMarkets($after: String) {
  markets(first: 250, after: $after) {
    edges {
      node {
        ...MarketSummary
        __typename
      }
      __typename
    }
    __typename
  }
}

fragment MarketSummary on Market {
  id
  name
  handle
  active: enabled
  primary
  
  managementIntent {
    id
    intendedManager {
      id: type
      type
      __typename
    }
    __typename
  }
  regions(first: 250) {
    edges {
      node {
        id
        name
        default
        ... on MarketRegionCountry {
          code
          __typename
        }
        __typename
      }
      __typename
    }
    __typename
  }
  __typename
}