scandipwa / reviews-graphql
不适用
1.6.0
2020-10-06 10:26 UTC
Requires
- magento/framework: *
- magento/module-catalog: *
- magento/module-customer: *
- magento/module-review: ^100.3
- magento/module-store: *
- scandipwa/performance: ^1.0
This package is auto-updated.
Last update: 2024-09-06 19:23:23 UTC
README
ReviewsGraphQl 提供了添加和显示客户评论的基本类型和解析器。
模块还向 ProductInterface
添加了新字段
-
review_summary
包括产品评论摘要信息-
rating_summary
, -
review_count
.
-
-
reviews
- 包含以下评论信息的产品评论列表-
review_id
, -
entity_id
, -
entity_code
, -
entity_pk_value
, -
status_id
, -
store_id
, -
customer_id
, -
nickname
, -
title
, -
detail_id
, -
detail
, -
created_at
, -
rating_votes
.
-
addProductReview
mutation AddProductReview($productReviewItem: ProductReviewInput!) { addProductReview(productReviewItem: $productReviewItem) { review_id entity_id entity_pk_value status_id store_id customer_id nickname title detail created_at } }
{ "productReviewItem": { "nickname": "John", "title": "Review Title", "detail": "Review Detail", "product_sku": "n31191497", "rating_data":[ { "rating_id": 1, "option_id": 4 },{ "rating_id": 2, "option_id": 8 } ] } }
getRatings
query GetRatings { getRatings { rating_id rating_code rating_options { option_id value } } }