Product Variant Field Cleanup
As of GraphQL Admin API version 2024-07, various fields on Product Variants that are duplicates of the linked Inventory Item will be removed from the Product Variant model, input types, and webhooks, as well as restrictions to
GraphQL Fields
In general the fields removed (and their replacement) are:
: The fulfillment service is now defined by where the item is stocked, and the fulfillment services that own those locations.
: This is replaced by the
field of the inventory item.
: This is replaced by the
tracked
field from the inventory item. Inventory management information is more clearly defined with both thetracked
andfields on the inventory item.
: This is replaced by the
field of the inventory item.
sku
: This field will continue to be returned on the Product Variant model, but is not directly editable. Rather the field will just proxy thesku
field from the inventory item.weight
and: These fields are replaced by the weight type in
.
More specifically, these fields are kept or removed:
- From
:
,
,
,
,
sku
,weight
, andare all removed.
- From
:
,
,
,
sku
,weight
, andare all removed.
- From
:
,
,
weight
, andare all removed.
sku
is kept. - From
return type:
,
,
,
,
weight
, andare all removed.
sku
is kept.
Metafields
As part of this work, you'll no longer be able to set the metafield under the
global
namespace for Product Variants. This was an alternative way of updating the of a variant, but since variants are no longer going to have the
field, the metafield is being removed.
Webhooks
The Product Variant webhooks are also seeing some fields removed, namely:
grams
weight