Skip to content

Commit f945855

Browse files
committed
feat!: address breaking changes when upgrading to 2024-10
1 parent 4c5bd7b commit f945855

3 files changed

Lines changed: 1 addition & 11 deletions

File tree

packages/gatsby-source-shopify/src/plugin-options-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function pluginOptionsSchema({ Joi }: PluginOptionsSchemaArgs): unknown {
4343
`Not set by default. If set to a string (example \`MyStore\`) node names will be \`allMyStoreShopifyProducts\` instead of \`allShopifyProducts\``
4444
),
4545
apiVersion: Joi.string()
46-
.default(`2024-07`)
46+
.default(`2024-10`)
4747
.description(
4848
`The API version that should be used. More information: https://shopify.dev/docs/api/usage/versioning`
4949
),

packages/gatsby-source-shopify/src/query-builders/locations-query.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@ export class LocationsQuery extends BulkQuery {
5050
id
5151
inventoryManagement
5252
serviceName
53-
shippingMethods {
54-
code
55-
label
56-
}
5753
type
5854
}
5955
fulfillsOnlineOrders

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export function locationTypeBuilder(prefix: string): string {
66
handle: String!
77
inventoryManagement: Boolean!
88
serviceName: String!
9-
shippingMethods: [${prefix}ShippingMethod!]!
109
shopifyId: String!
1110
type: ${prefix}FulfillmentServiceType!
1211
}
@@ -97,11 +96,6 @@ export function locationTypeBuilder(prefix: string): string {
9796
zip: String
9897
}
9998
100-
type ${prefix}ShippingMethod {
101-
code: String!
102-
label: String!
103-
}
104-
10599
type ${prefix}Weight {
106100
unit: ${prefix}WeightUnit!
107101
value: Float!

0 commit comments

Comments
 (0)