-
Notifications
You must be signed in to change notification settings - Fork 10.3k
feat!(gatsby-source-shopify): upgrade from Shopify API version 2024-04 to 2025-01 #39247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 4 commits
a862a4c
4c5bd7b
f945855
31dfa61
8d527b3
74e031c
5c24580
7f9e2d7
295f40a
36ea6b1
8af512b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,6 +63,12 @@ export class ProductVariantsQuery extends BulkQuery { | |
| count | ||
| precision | ||
| } | ||
| measurement { | ||
| weight { | ||
| unit | ||
| value | ||
| } | ||
| } | ||
| provinceCodeOfOrigin | ||
| requiresShipping | ||
| sku | ||
|
|
@@ -112,7 +118,6 @@ export class ProductVariantsQuery extends BulkQuery { | |
| product { | ||
| id | ||
| } | ||
| requiresShipping | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This field has been fully removed now |
||
| selectedOptions { | ||
| name | ||
| value | ||
|
|
@@ -127,8 +132,6 @@ export class ProductVariantsQuery extends BulkQuery { | |
| taxable | ||
| title | ||
| updatedAt | ||
| weight | ||
| weightUnit | ||
| metafields { | ||
| edges { | ||
| node { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,9 +5,7 @@ export function locationTypeBuilder(prefix: string): string { | |
| fulfillmentOrdersOptIn: Boolean! | ||
| handle: String! | ||
| inventoryManagement: Boolean! | ||
| productBased: Boolean! @deprecated(reason: "\`productBased\` will be removed in version 2024-07, non-product based fulfillment services are no longer supported") | ||
| serviceName: String! | ||
| shippingMethods: [${prefix}ShippingMethod!]! | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deprecated in |
||
| shopifyId: String! | ||
| type: ${prefix}FulfillmentServiceType! | ||
| } | ||
|
|
@@ -27,6 +25,7 @@ export function locationTypeBuilder(prefix: string): string { | |
| inventoryLevels: [${prefix}InventoryLevel!]! @link(by: "id") @proxy(from: "inventoryLevels___NODE", fromNode: true) | ||
| legacyResourceId: String! | ||
| locationsCount: Int! @proxy(from: "locationsCount.count") | ||
| measurement: ${prefix}InventoryItemMeasurement | ||
mrstork marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| provinceCodeOfOrigin: String | ||
| requiresShipping: Boolean! | ||
| shopifyId: String! | ||
|
|
@@ -38,6 +37,11 @@ export function locationTypeBuilder(prefix: string): string { | |
| variant: ${prefix}ProductVariantConnection! | ||
| } | ||
|
|
||
| type ${prefix}InventoryItemMeasurement { | ||
| id: ID! | ||
mrstork marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| weight: ${prefix}Weight | ||
| } | ||
|
|
||
| type ${prefix}InventoryQuantity { | ||
| name: String! | ||
| quantity: Int! | ||
|
|
@@ -92,9 +96,16 @@ export function locationTypeBuilder(prefix: string): string { | |
| zip: String | ||
| } | ||
|
|
||
| type ${prefix}ShippingMethod { | ||
| code: String! | ||
| label: String! | ||
| type ${prefix}Weight { | ||
| unit: ${prefix}WeightUnit! | ||
| value: Float! | ||
| } | ||
|
|
||
| enum ${prefix}WeightUnit { | ||
mrstork marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| GRAMS | ||
| KILOGRAMS | ||
| OUNCES | ||
| POUNDS | ||
| } | ||
|
|
||
| extend type ${prefix}ProductVariant { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,23 +19,20 @@ export function productVariantTypeBuilder(prefix: string): string { | |
| presentmentPrices: [${prefix}ProductVariantPricePair!]! | ||
| price: Float! | ||
| product: ${prefix}Product! @link(from: "_product", by: "id") | ||
| requiresShipping: Boolean! @deprecated(reason: "Use \`InventoryItem.requiresShipping\` instead.") | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Field has been fully removed now |
||
| selectedOptions: [${prefix}SelectedOption!]! | ||
| sellingPlanGroupCount: Int! @proxy(from: "sellingPlanGroupsCount.count") | ||
| sku: String | ||
| shopifyId: String! | ||
| sku: String | ||
| storefrontId: String! | ||
| taxCode: String | ||
| taxable: Boolean! | ||
| taxCode: String | ||
| title: String! | ||
| updatedAt: Date! @dateformat | ||
| weight: Float | ||
| weightUnit: ${prefix}WeightUnit! | ||
mrstork marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| enum ${prefix}ProductVariantInventoryPolicy { | ||
| DENY | ||
| CONTINUE | ||
| DENY | ||
| } | ||
|
|
||
| type ${prefix}ProductVariantPricePair { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.