scandipwa / customer-graph-ql
N/A
Installs: 196 573
Dependents: 2
Suggesters: 0
Security: 0
Stars: 3
Watchers: 5
Forks: 19
Type:magento2-module
Requires
- magento/framework: *
- magento/module-authorization: *
- magento/module-catalog: *
- magento/module-customer: *
- magento/module-customer-graph-ql: ^100.3
- magento/module-graph-ql: *
- magento/module-integration: *
- magento/module-store: *
This package is auto-updated.
Last update: 2025-03-14 21:48:15 UTC
README
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
mutation ForgotPassword($email: String!) { forgotPassword(email: $email) { status } }
The variables for input above might look like:
{ "email": "alfreds+valid12@gmail.com" }
Mutation resetPassword
mutation ResetPassword( $token: String!, $password: String!, $password_confirmation: String! ) { resetPassword( token: $token, password: $password, password_confirmation: $password_confirmation ) { status } }
{ "token": "7nk0Ch7D5SZsPHWKycAyGdonAM9MnHRw", "password": "MyNewPassword123_", "password_confirmation": "MyNewPassword123_" }
Mutation confirmCustomerEmail
Here is an example use of it:
mutation ConfirmCustomerEmail( $password: String! $key: String! $email: String! ) { confirmCustomerEmail( password: $password key: $key email: $email ) { status token customer { id firstname lastname email is_subscribed addresses { city country_id street telephone firstname lastname postcode street default_shipping default_billing } } } }
The variables for input above might look like:
{ "key": "0129309912", "email": "alfreds+valid12@gmail.com", "password": "Testing123_" }
Mutation resendConfirmationEmail
⚠️ This is not tested but implemented !!! ⚠️
Here is an example use of it:
mutation ResendConfirmationEmail( $email: String! ) { resendConfirmationEmail( email: $email ) { status } }
The variables for input above might look like:
{ "email": "alfreds+valid12@gmail.com" }