GraphQL
GraphQL ワークスペースを使用すると、管理者は自分のデータを使用してGraphQL クエリを作成およびテストできます。
このワークスペースは、productSearchおよびattributeMetadata クエリをサポートしています。
query productSearch {
productSearch(phrase: "a306") {
total_count
items {
product {
sku
name
}
}
facets {
title
}
}
}
変数:
{
"Magento-Environment-Id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"Magento-Website-Code": "base",
"Magento-Store-Code": "base",
"Magento-Store-View-Code": "default",
"X-Api-Key": "search_gql"
}
recommendation-more-help
commerce-help-live-search