Added more info about the products

This commit is contained in:
Luis Alvarez
2020-10-18 15:23:17 -05:00
parent 526b291f4f
commit 42cb7120e5
3 changed files with 158 additions and 19 deletions

View File

@@ -9,12 +9,15 @@ export const responsiveImageFragment = /* GraphQL */ `
isDefault
}
`
export const multipleChoiceFragment = /* GraphQL */ `
export const swatchOptionFragment = /* GraphQL */ `
fragment swatchOption on SwatchOptionValue {
isDefault
hexColors
}
`
export const multipleChoiceOptionFragment = /* GraphQL */ `
fragment multipleChoiceOption on MultipleChoiceOption {
entityId
values {
@@ -26,6 +29,8 @@ export const multipleChoiceFragment = /* GraphQL */ `
}
}
}
${swatchOptionFragment}
`
export const productInfoFragment = /* GraphQL */ `
@@ -76,5 +81,22 @@ export const productInfoFragment = /* GraphQL */ `
}
${responsiveImageFragment}
${multipleChoiceFragment}
${multipleChoiceOptionFragment}
`
export const productConnectionFragment = /* GraphQL */ `
fragment productConnnection on ProductConnection {
pageInfo {
startCursor
endCursor
}
edges {
cursor
node {
...productInfo
}
}
}
${productInfoFragment}
`