Skip to content

Contact Us page GraphQL endpoints

License

Notifications You must be signed in to change notification settings

scandipwa/contact-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScandiPWA_ContactGraphQl

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"
  }
}