mirror of
https://github.com/vercel/commerce.git
synced 2025-05-17 15:06:59 +00:00
62 lines
1.1 KiB
GraphQL
62 lines
1.1 KiB
GraphQL
query SearchProducts(
|
|
$search: String!
|
|
$sortBy: ProductOrderField!
|
|
$sortDirection: OrderDirection!
|
|
) {
|
|
products(
|
|
first: 100
|
|
channel: "default-channel"
|
|
sortBy: { field: $sortBy, direction: $sortDirection }
|
|
filter: { search: $search }
|
|
) {
|
|
edges {
|
|
node {
|
|
id
|
|
slug
|
|
name
|
|
isAvailableForPurchase
|
|
description
|
|
seoTitle
|
|
seoDescription
|
|
pricing {
|
|
priceRange {
|
|
start {
|
|
gross {
|
|
currency
|
|
amount
|
|
}
|
|
}
|
|
stop {
|
|
gross {
|
|
currency
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
media {
|
|
url(size: 2160)
|
|
type
|
|
alt
|
|
}
|
|
collections {
|
|
name
|
|
}
|
|
updatedAt
|
|
variants {
|
|
id
|
|
name
|
|
pricing {
|
|
price {
|
|
gross {
|
|
currency
|
|
amount
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|