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