Schema Documentation
registerCustomer
Description
The registerCustomer mutation
Response
Returns a RegisterCustomerPayload
Arguments
Name | Description |
---|---|
input - RegisterCustomerInput! | Input for the registerCustomer mutation |
Example
Query
mutation registerCustomer($input: RegisterCustomerInput!){ registerCustomer(input: $input){ authTokenclientMutationIdcustomer { ...CustomerFragment }refreshTokenviewer { ...UserFragment } }}
Variables
{"input":RegisterCustomerInput}
Response
{"data":{"registerCustomer":{"authToken":"xyz789","clientMutationId":"abc123","customer":Customer,"refreshToken":"xyz789","viewer":User}}}