<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26" -->

---
title: Query market hierarchies with the GraphQL Admin API
description: Shopify's GraphQL Admin API version 2026-10 adds new fields and queries for retrieving a store's market hierarchy, including marketRelationships,...
canonical: https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Query market hierarchies with the GraphQL Admin API | daily.dev
og:description: Shopify's GraphQL Admin API version 2026-10 adds new fields and queries for retrieving a store's market hierarchy, including marketRelationships,...
og:url: https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26
og:image: https://api.daily.dev/og/posts/54EymSI26.png
og:image:alt: Query market hierarchies with the GraphQL Admin API
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Query market hierarchies with the GraphQL Admin API

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 2 min read · 0 upvotes · 0 comments

## Summary

Shopify's GraphQL Admin API version 2026-10 adds new fields and queries for retrieving a store's market hierarchy, including marketRelationships, parentMarkets, childMarkets, and their counts. A marketRelationshipsStatus query returns a version value to detect when asynchronously rebuilt relationship data has changed, since cursors can shift during rebuilds. Existing apps and older API versions are unaffected; no migration is required unless developers want to use the new hierarchy fields.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/market-relationships>

## Questions this post answers

### How do I query market parent-child relationships in Shopify's GraphQL Admin API?

Use the marketRelationships query available in GraphQL Admin API version 2026-10 or later, which returns a connection of MarketRelationship objects with parent and child market data. The Market object also gains parentMarkets, parentMarketsCount, childMarkets, and childMarketsCount fields. The app needs the appropriate access scope, and the parentMarket field is null for root markets.

_Developers building Shopify market integrations can follow API changelog updates like this via daily.dev._

### Why does pagination break when querying Shopify market relationships after a hierarchy change?

Market relationships are rebuilt asynchronously whenever the hierarchy changes, and connection cursors can change during that rebuild even though relationship IDs stay stable. Apps should retrieve the marketRelationshipsStatus version value before and after a hierarchy-affecting change, and restart pagination once the version changes to ensure they're using the latest materialized relationship data.

_Teams debugging pagination quirks after API upgrades can track changes like this on daily.dev._

## Similar posts on daily.dev

- [Create channel markets with the GraphQL Admin API](https://daily.dev/posts/create-channel-markets-with-the-graphql-admin-api-sc4n4mevi) · Shopify Developer changelog · 0 upvotes · 0 comments
- [\[DRAFT\] Markets APIs now support MarketRegionSubdivision](https://daily.dev/posts/draft-markets-apis-now-support-marketregionsubdivision-4mdvbga55) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Advanced Metafield & Metaobject Querying](https://daily.dev/posts/advanced-metafield-metaobject-querying-quwsdmcne) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Shopify Reports 15X Faster Graphql Execution with Breadth First Engine](https://daily.dev/posts/shopify-reports-15x-faster-graphql-execution-with-breadth-first-engine-0xn3kh03q) · InfoQ · 1 upvotes · 0 comments
- [Manage Orders, Fulfill Shipments And Organize Products With Shopify](https://daily.dev/posts/manage-orders-fulfill-shipments-and-organize-products-with-shopify-5y5tc9jhy) · API Evangelist · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Query market hierarchies with the GraphQL Admin API","url":"https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26"},"datePublished":"2026-09-17T16:04:05.113Z","dateModified":"2026-09-17T16:50:55.834Z","description":"Shopify's GraphQL Admin API version 2026-10 adds new fields and queries for retrieving a store's market hierarchy, including marketRelationships,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,graphql,shopify","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"Query market hierarchies with the GraphQL Admin API"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/query-market-hierarchies-with-the-graphql-admin-api-54eymsi26#faq","mainEntity":[{"@type":"Question","name":"How do I query market parent-child relationships in Shopify's GraphQL Admin API?","acceptedAnswer":{"@type":"Answer","text":"Use the marketRelationships query available in GraphQL Admin API version 2026-10 or later, which returns a connection of MarketRelationship objects with parent and child market data. The Market object also gains parentMarkets, parentMarketsCount, childMarkets, and childMarketsCount fields. The app needs the appropriate access scope, and the parentMarket field is null for root markets. Developers building Shopify market integrations can follow API changelog updates like this via daily.dev."}},{"@type":"Question","name":"Why does pagination break when querying Shopify market relationships after a hierarchy change?","acceptedAnswer":{"@type":"Answer","text":"Market relationships are rebuilt asynchronously whenever the hierarchy changes, and connection cursors can change during that rebuild even though relationship IDs stay stable. Apps should retrieve the marketRelationshipsStatus version value before and after a hierarchy-affecting change, and restart pagination once the version changes to ensure they're using the latest materialized relationship data. Teams debugging pagination quirks after API upgrades can track changes like this on daily.dev."}}]}
```

