scandipwa/contact-graphql

为ScandiPWA提供的联系特定修改

安装次数: 129,881

依赖项: 1

建议者: 0

安全性: 0

星标: 0

关注者: 3

分支: 2

类型:magento2-theme

1.0.0 2020-11-13 14:18 UTC

This package is auto-updated.

Last update: 2024-08-29 05:37:13 UTC


README

此模块为Magento_Contact模块提供GraphQL端点。

端点描述

contactPageConfig

此端点允许获取是否启用了“联系我们”。

query GetContactPageConfig {
  contactPageConfig {
    enabled
  }
}
{
  "contactPageConfig": {
    "enabled": true
  }
}

contactForm

此端点允许客户发送邮件消息。

mutation ContactForm(contact: ContactForm!) {
  contactForm(contact: ContactForm!) {
    message: String
  }
}
{
  "contactForm": {
    "message": "success"
  }
}