mirror of
https://github.com/vercel/commerce.git
synced 2025-05-21 00:46:59 +00:00
44 lines
733 B
TypeScript
44 lines
733 B
TypeScript
export const ProductOneBySlug = /* GraphQL */ `
|
|
query ProductOneBySlug($slug: String!, $channel: String = "default-channel") {
|
|
product(slug: $slug, channel: $channel) {
|
|
id
|
|
slug
|
|
name
|
|
description
|
|
pricing {
|
|
priceRange {
|
|
start {
|
|
net {
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
variants {
|
|
id
|
|
name
|
|
attributes {
|
|
attribute {
|
|
name
|
|
}
|
|
values {
|
|
name
|
|
}
|
|
}
|
|
pricing {
|
|
price {
|
|
net {
|
|
amount
|
|
currency
|
|
}
|
|
}
|
|
}
|
|
}
|
|
media {
|
|
url
|
|
alt
|
|
}
|
|
}
|
|
}
|
|
`
|