2026-07 GetCollectionVariants returns incorrect variants for collections containing sub-collections
Issue
I believe there is a bug in the Shopify Admin GraphQL API (2026-07) when using GetCollectionVariants to retrieve variants from a collection that contains a variant-scoped sub-collection.
Reproduction
I have two collections.
1. Child collection
The child collection contains exactly 3 variants:
- Orange
- 50 cm
- Black
Running:
query GetCollectionVariants {
productVariants(
first: 250
query: "collection:<child_collection_id>"
) {
edges {
node {
title
price
}
}
}
}
correctly returns:
Orange
50 cm
Black
2. Parent collection
The parent collection contains the child collection as a sub-collection.
Running the same GetCollectionVariants query against the parent collection:
query GetCollectionVariants {
productVariants(
first: 250
query: "collection:<parent_collection_id>"
) {
edges {
node {
title
price
}
}
}
}
returns 11 variants instead of 3.
The 3 selected variants belong to 3 different products:
Product A → 1 of 4 variants selected
Product B → 1 of 3 variants selected
Product C → 1 of 4 variants selected
So there are 11 variants across those products, but only 3 variants are actually members of the child collection.
The parent collection query returns all 11 variants, including variants that are not part of the child collection.
Expected behavior
I would expect the parent collection to preserve the variant-level membership of its child collection:
Parent collection
└── Child collection
├── Orange
├── 50 cm
└── Black
Therefore, GetCollectionVariants should return:
Orange
50 cm
Black
rather than all 11 variants belonging to the three products.



