customer.api.graphql 555 B

12345678910111213141516
  1. type Query {
  2. customers(options: ListOptions): CustomerList!
  3. customer(id: ID!): 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: ID, input: CreateAddressInput): Address!
  10. }
  11. type CustomerList implements PaginatedList {
  12. items: [Customer!]!
  13. totalItems: Int!
  14. }