Merge branch 'feature/m1-get-product-detail' of github.com:KieIO/grocery-vercel-commerce into feature/m3-add-product-to-cart-product-detail

This commit is contained in:
DatNguyen
2021-10-11 16:05:56 +07:00
15 changed files with 79 additions and 46 deletions

View File

@@ -39,6 +39,25 @@ export const getProductQuery = /* GraphQL */ `
facetValues {
id
}
collections {
id
}
}
}
`
export const getProductDetailQuery = /* GraphQL */ `
query GetProductDetail($slug: String! = "hand-trowel") {
product(slug: $slug) {
name
description
variants {
price
priceWithTax
}
assets {
preview
name
}
}
}
`