定制 scandipwa/customer-graph-ql 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

scandipwa/customer-graph-ql

最新稳定版本:4.1.0

Composer 安装命令:

composer require scandipwa/customer-graph-ql

包简介

N/A

README 文档

README

CustomerGraphQl provides type and resolver information for the GraphQl module to generate customer information endpoints.

This module extends the M2 GraphQl customer queries and mutations. New endpoints will be documented in future releases.

Custom query documentation

Mutation forgotPassword

mutation ForgotPassword($email: String!) {
  	forgotPassword(email: $email) {
  		status
	}
}

The variables for input above might look like:

{
    "email": "alfreds+valid12@gmail.com"
}

Mutation resetPassword

mutation ResetPassword(
  $token: String!,
  $password: String!,
  $password_confirmation: String!
) {
  resetPassword(
    token: $token,
  	password: $password,
  	password_confirmation: $password_confirmation
  ) {
    status
  }
}
{
  "token": "7nk0Ch7D5SZsPHWKycAyGdonAM9MnHRw",
  "password": "MyNewPassword123_",
	"password_confirmation": "MyNewPassword123_"
}

Mutation confirmCustomerEmail

Here is an example use of it:

mutation ConfirmCustomerEmail(
    $password: String!
    $key: String!
    $email: String!
) {
    confirmCustomerEmail(
        password: $password
        key: $key
        email: $email
    ) {
        status
        token
        customer {
            id
            firstname
            lastname
            email
            is_subscribed
            addresses {
                city
                country_id
                street
                telephone
                firstname
                lastname
                postcode
                street
                default_shipping
                default_billing
            }
        }
    }
}

The variables for input above might look like:

{
    "key": "0129309912",
    "email": "alfreds+valid12@gmail.com",
    "password": "Testing123_"
}

Mutation resendConfirmationEmail

⚠️ This is not tested but implemented !!! ⚠️

Here is an example use of it:

mutation ResendConfirmationEmail(
    $email: String!
) {
    resendConfirmationEmail(
        email: $email
    ) {
        status
    }
}

The variables for input above might look like:

{
    "email": "alfreds+valid12@gmail.com"
}

统计信息

  • 总下载量: 213.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 4
  • Forks: 18
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 未知

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固