refactor: move query into get-product-query

This commit is contained in:
Tan Le
2021-09-30 15:52:18 +07:00
parent a4c23a2181
commit cf2260869a
2 changed files with 19 additions and 18 deletions

View File

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