Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/scandipwa/contact-graphql

Contact Us page GraphQL endpoints
https://github.com/scandipwa/contact-graphql

Last synced: 14 days ago
JSON representation

Contact Us page GraphQL endpoints

Awesome Lists containing this project

README

        

# ScandiPWA_ContactGraphQl

This module provides GraphQL endpoints for Magento_Contact module.

## Endpoint description

### contactPageConfig

This endpoint allows getting whether Contact Us is enabled.

```graphql
query GetContactPageConfig {
contactPageConfig {
enabled
}
}
```

```json
{
"contactPageConfig": {
"enabled": true
}
}
```

### contactForm

This endpoint allows sending mail message from customer

```graphql
mutation ContactForm(contact: ContactForm!) {
contactForm(contact: ContactForm!) {
message: String
}
}
```

```json
{
"contactForm": {
"message": "success"
}
}
```