scandipwa/reviews-graphql 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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_summary which 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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 6
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2019-06-13