customer-group.api.graphql 730 B

12345678910111213141516171819202122232425
  1. type Query {
  2. customerGroups: [CustomerGroup!]!
  3. customerGroup(id: ID!): CustomerGroup
  4. }
  5. type Mutation {
  6. "Create a new CustomerGroup"
  7. createCustomerGroup(input: CreateCustomerGroupInput!): CustomerGroup!
  8. "Update an existing CustomerGroup"
  9. updateCustomerGroup(input: UpdateCustomerGroupInput!): CustomerGroup!
  10. "Add Customers to a CustomerGroup"
  11. addCustomersToGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
  12. "Remove Customers from a CustomerGroup"
  13. removeCustomersFromGroup(customerGroupId: ID!, customerIds: [ID!]!): CustomerGroup!
  14. }
  15. input CreateCustomerGroupInput {
  16. name: String!
  17. customerIds: [ID!]
  18. }
  19. input UpdateCustomerGroupInput {
  20. id: ID!
  21. name: String
  22. }