lib/shopify: add collection names to product query fragment

This commit is contained in:
andr-ew 2023-06-21 14:46:32 -05:00
parent f54c0cfe65
commit 087c5ecb93

View File

@ -44,7 +44,7 @@ const productFragment = /* GraphQL */ `
featuredImage { featuredImage {
...image ...image
} }
images(first: 20) { images(first: 99) {
edges { edges {
node { node {
...image ...image
@ -56,6 +56,12 @@ const productFragment = /* GraphQL */ `
} }
tags tags
updatedAt updatedAt
collections(first: 99) {
nodes {
handle
title
}
}
} }
${imageFragment} ${imageFragment}
${seoFragment} ${seoFragment}