Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scandipwa/customer-graph-ql
Customer information endpoints port from M2 dev branch + new endpoints for missing functional
https://github.com/scandipwa/customer-graph-ql
Last synced: 14 days ago
JSON representation
Customer information endpoints port from M2 dev branch + new endpoints for missing functional
- Host: GitHub
- URL: https://github.com/scandipwa/customer-graph-ql
- Owner: scandipwa
- License: osl-3.0
- Created: 2019-03-19T16:50:47.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-14T20:32:05.000Z (4 months ago)
- Last Synced: 2024-11-01T01:34:57.050Z (20 days ago)
- Language: PHP
- Size: 136 KB
- Stars: 3
- Watchers: 6
- Forks: 19
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ScandiPWA_CustomerGraphQl
**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`
```graphql
mutation ForgotPassword($email: String!) {
forgotPassword(email: $email) {
status
}
}
```The variables for input above might look like:
```json
{
"email": "[email protected]"
}
```### Mutation `resetPassword`
```graphql
mutation ResetPassword(
$token: String!,
$password: String!,
$password_confirmation: String!
) {
resetPassword(
token: $token,
password: $password,
password_confirmation: $password_confirmation
) {
status
}
}
``````json
{
"token": "7nk0Ch7D5SZsPHWKycAyGdonAM9MnHRw",
"password": "MyNewPassword123_",
"password_confirmation": "MyNewPassword123_"
}
```### Mutation `confirmCustomerEmail`
Here is an example use of it:
```graphql
mutation ConfirmCustomerEmail(
$password: String!
$key: String!
$email: String!
) {
confirmCustomerEmail(
password: $password
key: $key
email: $email
) {
status
token
customer {
id
firstname
lastname
is_subscribed
addresses {
city
country_id
street
telephone
firstname
lastname
postcode
street
default_shipping
default_billing
}
}
}
}
```The variables for input above might look like:
```json
{
"key": "0129309912",
"email": "[email protected]",
"password": "Testing123_"
}
```### Mutation `resendConfirmationEmail`
> ⚠️ This is not tested but implemented !!! ⚠️
Here is an example use of it:
```graphql
mutation ResendConfirmationEmail(
$email: String!
) {
resendConfirmationEmail(
email: $email
) {
status
}
}
```The variables for input above might look like:
```json
{
"email": "[email protected]"
}
```