@wearejh/m2-pwa-user-edit-gql
v0.56.0
Published
GQL implementation of m2-pwa-user-edit — drop-in replacement that swaps REST epics for Apollo GraphQL
Keywords
Readme
@wearejh/m2-pwa-user-edit-gql
Drop-in GQL replacement for @wearejh/m2-pwa-user-edit.
Overview
Replaces the two REST-based epics with Apollo GraphQL equivalents:
| Epic | REST | GQL mutation |
|------|------|--------------|
| editEpic | PUT /V1/customers/me | updateCustomerV2 |
| passwordChange | PUT /V1/customers/me/password | changeCustomerPassword |
Usage
- import { editRegister } from '@wearejh/m2-pwa-user-edit';
+ import { editRegister } from '@wearejh/m2-pwa-user-edit-gql';
- import { passwordRegister } from '@wearejh/m2-pwa-user-edit';
+ import { passwordRegister } from '@wearejh/m2-pwa-user-edit-gql';All actions, reducer state, and types remain identical.
GQL queries
lib/queries/updateCustomerV2.graphqllib/queries/changeCustomerPassword.graphql
