graycoreio/daffodil

View on GitHub
libs/auth/driver/magento/src/queries/create-customer.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { gql } from 'apollo-angular';


export const createCustomerMutation = gql`
  mutation MagentoCreateCustomer(
    $email: String!,
    $password: String!,
    $subscribe: Boolean!,
    $firstname: String!,
    $lastname: String!,
  ) {
    createCustomerV2(input: {
      firstname: $firstname,
      lastname: $lastname,
      email: $email,
      password: $password,
      is_subscribed: $subscribe
    }) {
      customer {
        email
      }
    }
  }
`;