18 September 2023
Composable Commerce
HTTP API
Enhancement
CustomersMessages/SubscriptionsGraphQL

You can now subscribe to Messages for changes to Custom Fields and Types on Customer Groups.

Changes:

The following changes were introduced in terms of GraphQL SDL:

type CustomerGroupCustomFieldAdded implements MessagePayload {
  name: String!
  value: Json!
  type: String!
}

type CustomerGroupCustomFieldChanged implements MessagePayload {
  name: String!
  value: Json!
  oldValue: Json
  type: String!
}

type CustomerGroupCustomFieldRemoved implements MessagePayload {
  name: String!
  type: String!
}

type CustomerGroupCustomTypeRemoved implements MessagePayload {
  oldTypeId: String
  type: String!
}

type CustomerGroupCustomTypeSet implements MessagePayload {
  customFields: CustomFieldsType!
  oldTypeId: String
  type: String!
}