From f5f7a1c6b3ad2c3151adc2ba4073266e58f1b88e Mon Sep 17 00:00:00 2001 From: Ward Peeters Date: Tue, 28 Mar 2023 09:33:23 +0200 Subject: [PATCH] fix(gatsby-source-shopify): Correct interface query (#37788) (cherry picked from commit ae1e8e98f323a9ee04a71a46eddf453ff6cd6ccd) --- .../__snapshots__/create-operations.ts.snap | 32 ++++++++++++++----- .../query-builders/product-variants-query.ts | 4 ++- .../src/query-builders/products-query.ts | 4 ++- 3 files changed, 30 insertions(+), 10 deletions(-) diff --git a/packages/gatsby-source-shopify/__tests__/__snapshots__/create-operations.ts.snap b/packages/gatsby-source-shopify/__tests__/__snapshots__/create-operations.ts.snap index 615177c0a6025..55d27ce7df5be 100644 --- a/packages/gatsby-source-shopify/__tests__/__snapshots__/create-operations.ts.snap +++ b/packages/gatsby-source-shopify/__tests__/__snapshots__/create-operations.ts.snap @@ -35,7 +35,9 @@ Array [ width } featuredMedia { - id + ... on Node { + id + } } feedback { details { @@ -307,7 +309,9 @@ Array [ media { edges { node { - id + ... on Node { + id + } } } } @@ -677,7 +681,9 @@ Array [ width } featuredMedia { - id + ... on Node { + id + } } feedback { details { @@ -949,7 +955,9 @@ Array [ media { edges { node { - id + ... on Node { + id + } } } } @@ -1319,7 +1327,9 @@ Array [ width } featuredMedia { - id + ... on Node { + id + } } feedback { details { @@ -1591,7 +1601,9 @@ Array [ media { edges { node { - id + ... on Node { + id + } } } } @@ -1961,7 +1973,9 @@ Array [ width } featuredMedia { - id + ... on Node { + id + } } feedback { details { @@ -2233,7 +2247,9 @@ Array [ media { edges { node { - id + ... on Node { + id + } } } } diff --git a/packages/gatsby-source-shopify/src/query-builders/product-variants-query.ts b/packages/gatsby-source-shopify/src/query-builders/product-variants-query.ts index 98f9fd36eb39a..e07dd6c48a498 100644 --- a/packages/gatsby-source-shopify/src/query-builders/product-variants-query.ts +++ b/packages/gatsby-source-shopify/src/query-builders/product-variants-query.ts @@ -80,7 +80,9 @@ export class ProductVariantsQuery extends BulkQuery { media { edges { node { - id + ... on Node { + id + } } } } diff --git a/packages/gatsby-source-shopify/src/query-builders/products-query.ts b/packages/gatsby-source-shopify/src/query-builders/products-query.ts index 540f2a77105e3..189f7087744ce 100644 --- a/packages/gatsby-source-shopify/src/query-builders/products-query.ts +++ b/packages/gatsby-source-shopify/src/query-builders/products-query.ts @@ -39,7 +39,9 @@ export class ProductsQuery extends BulkQuery { width } featuredMedia { - id + ... on Node { + id + } } feedback { details {