Skip to content

Commit c6e95b8

Browse files
committed
fix: add backwards compatibility for weight/weightUnit fields
1 parent 5c24580 commit c6e95b8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/gatsby-source-shopify/src/type-builders/location-type.ts

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ export function locationTypeBuilder(prefix: string): string {
102102
103103
extend type ${prefix}ProductVariant {
104104
inventoryItem: ${prefix}InventoryItem!
105+
weight: Float @proxy(from: "inventoryItem.measurement.weight.value") @deprecated(reason: "Use InventoryItem.measurement.weight.value directly instead")
106+
weightUnit: ${prefix}WeightUnit! @proxy(from: "inventoryItem.measurement.weight.unit") @deprecated(reason: "Use InventoryItem.measurement.weight.unit directly instead")
105107
}
106108
`
107109
}

0 commit comments

Comments
 (0)