Skip to content

Commit 944b074

Browse files
gatsbybotwardpeet
andauthored
fix(gatsby-source-shopify): Correct interface query (#37788) (#37791)
Co-authored-by: Ward Peeters <[email protected]>
1 parent 370ba2a commit 944b074

File tree

3 files changed

+30
-10
lines changed

3 files changed

+30
-10
lines changed

packages/gatsby-source-shopify/__tests__/__snapshots__/create-operations.ts.snap

+24-8
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ Array [
3535
width
3636
}
3737
featuredMedia {
38-
id
38+
... on Node {
39+
id
40+
}
3941
}
4042
feedback {
4143
details {
@@ -307,7 +309,9 @@ Array [
307309
media {
308310
edges {
309311
node {
310-
id
312+
... on Node {
313+
id
314+
}
311315
}
312316
}
313317
}
@@ -677,7 +681,9 @@ Array [
677681
width
678682
}
679683
featuredMedia {
680-
id
684+
... on Node {
685+
id
686+
}
681687
}
682688
feedback {
683689
details {
@@ -949,7 +955,9 @@ Array [
949955
media {
950956
edges {
951957
node {
952-
id
958+
... on Node {
959+
id
960+
}
953961
}
954962
}
955963
}
@@ -1319,7 +1327,9 @@ Array [
13191327
width
13201328
}
13211329
featuredMedia {
1322-
id
1330+
... on Node {
1331+
id
1332+
}
13231333
}
13241334
feedback {
13251335
details {
@@ -1591,7 +1601,9 @@ Array [
15911601
media {
15921602
edges {
15931603
node {
1594-
id
1604+
... on Node {
1605+
id
1606+
}
15951607
}
15961608
}
15971609
}
@@ -1961,7 +1973,9 @@ Array [
19611973
width
19621974
}
19631975
featuredMedia {
1964-
id
1976+
... on Node {
1977+
id
1978+
}
19651979
}
19661980
feedback {
19671981
details {
@@ -2233,7 +2247,9 @@ Array [
22332247
media {
22342248
edges {
22352249
node {
2236-
id
2250+
... on Node {
2251+
id
2252+
}
22372253
}
22382254
}
22392255
}

packages/gatsby-source-shopify/src/query-builders/product-variants-query.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,9 @@ export class ProductVariantsQuery extends BulkQuery {
8080
media {
8181
edges {
8282
node {
83-
id
83+
... on Node {
84+
id
85+
}
8486
}
8587
}
8688
}

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ export class ProductsQuery extends BulkQuery {
3939
width
4040
}
4141
featuredMedia {
42-
id
42+
... on Node {
43+
id
44+
}
4345
}
4446
feedback {
4547
details {

0 commit comments

Comments
 (0)