Skip to content

Commit fca708a

Browse files
seynadioclaude
andcommitted
Fix GraphQL field error in Shopify order queries
Remove acceptsMarketing field from customer queries that was causing GraphQL selectionMismatch errors in Get Order and Search Orders actions. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <[email protected]>
1 parent 39a4b7b commit fca708a

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

components/shopify_developer_app/common/queries.mjs

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ const GET_ORDER = `
9696
email
9797
phone
9898
note
99-
emailMarketingConsent
10099
createdAt
101100
updatedAt
102101
verifiedEmail
@@ -197,15 +196,8 @@ const GET_ORDER = `
197196
title
198197
sku
199198
barcode
200-
inventoryItem {
201-
id
202-
measurement {
203-
weight {
204-
value
205-
unit
206-
}
207-
}
208-
}
199+
weight
200+
weightUnit
209201
inventoryQuantity
210202
price
211203
compareAtPrice
@@ -286,11 +278,7 @@ const GET_ORDER = `
286278
code
287279
source
288280
carrierIdentifier
289-
requestedFulfillmentService {
290-
id
291-
serviceName
292-
handle
293-
}
281+
requestedFulfillmentServiceId
294282
deliveryCategory
295283
originalPriceSet {
296284
shopMoney {
@@ -342,9 +330,8 @@ const GET_ORDER = `
342330
trackingNumbers
343331
trackingUrls
344332
service {
345-
id
346333
serviceName
347-
handle
334+
shippingMethods
348335
}
349336
fulfillmentLineItems(first: 250) {
350337
edges {
@@ -610,7 +597,6 @@ const LIST_ORDERS = `
610597
lastName
611598
email
612599
phone
613-
emailMarketingConsent
614600
defaultAddress {
615601
id
616602
address1

0 commit comments

Comments
 (0)