customer.api.graphql 437 B

1234567891011
  1. type Query {
  2. customers: [Customer]
  3. customer(id: Int!): Customer
  4. }
  5. type Mutation {
  6. "Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer."
  7. createCustomer(input: CreateCustomerInput!, password: String): Customer
  8. "Create a new Address and associate it with the Customer specified by customerId"
  9. createCustomerAddress(customerId: Int, input: CreateAddressInput): Address
  10. }