mirror of
https://github.com/vercel/commerce.git
synced 2025-06-19 21:51:21 +00:00
38 lines
628 B
TypeScript
38 lines
628 B
TypeScript
const getProductQuery = /* GraphQL */ `
|
|
query getProductBySlug($slug: String!, $channel: String = "default-channel") {
|
|
product(slug: $slug, channel: $channel) {
|
|
id
|
|
slug
|
|
name
|
|
description
|
|
pricing {
|
|
priceRange {
|
|
start {
|
|
net {
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
variants {
|
|
id
|
|
name
|
|
pricing {
|
|
price {
|
|
net {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
}
|
|
}
|
|
images {
|
|
url
|
|
alt
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export default getProductQuery
|