scandipwa/reviews-graphql
最新稳定版本:1.6.0
Composer 安装命令:
composer require scandipwa/reviews-graphql
包简介
N/A
README 文档
README
ReviewsGraphQl provides basic types and resolvers for adding and displaying customer reviews.
Module also adds new fields to ProductInterface:
-
review_summarywhich includes information about product review summary:-
rating_summary, -
review_count.
-
-
reviews- a list of product reviews containing following review information:-
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 } } }
统计信息
- 总下载量: 57.92k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2019-06-13