commerce/packages/saleor/utils/queries/product-one-by-slug.ts
2022-01-14 18:29:24 -05:00

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
}
}
}
`