mirror of
https://github.com/vercel/commerce.git
synced 2025-07-26 03:31:23 +00:00
refactor: move query into get-product-query
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
`
|
Reference in New Issue
Block a user