Shop.domains endpoint replacement in GraphQL Admin API

We’re using the domains edge in the GraphQL admin API and found that it has been marked as deprecated in the stable 2022-07 version of the GraphQL admin API (https://shopify.dev/api/admin-graphql/2022-07/objects/Shop#field-shop-domains).

The docs do mention that there is an alternative edge to use called domainsPaginated. Doing a search of the current version of the docs as well as the release candidate and unstable version does not provide any reference to the alternative.

Is this an omission from the docs or is the ability to query domains from the GraphQL Admin API going away?

5 Likes

Additionally, once I retrieve all the registered domains for a shop, how can I determine the current domain in the context (e.g., within a checkout UI extension)? useShop().storefrontUrl seems to return the primary storefront URL, but not the current domain.

I’m also searching for the domainsPaginated field? Were you able to find it?

1 Like

I’m also looking for it with no success.. It’s still present but deprecated in 2025-01 so we will continue using “domains” for now.

Did anyone found a solution or talked to Shopify API support?

I reached out to support today and they supposedly created an issue for the dev team. I also linked this thread so hopefully we get a response here.

Update: domainsPaginated now exists in an “unstable” version of the admin API: Admin API