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
8eedb3c4-09d2-4e4f-917b-524833fc6b4f