scandipwa/contact-graphql

Contact-specific modifications for ScandiPWA

Installs: 116 380

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 4

Forks: 2

Type:magento2-theme

1.0.0 2020-11-13 14:18 UTC

This package is auto-updated.

Last update: 2024-04-29 04:46:49 UTC


README

This module provides GraphQL endpoints for Magento_Contact module.

Endpoint description

contactPageConfig

This endpoint allows getting whether Contact Us is enabled.

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

contactForm

This endpoint allows sending mail message from customer

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