customerTypeUnassignAttributes Mutation
Unassign attributes from a given customer type. Values already assigned to users are kept in the database, but are hidden until the attribute is assigned to the user’s customer type again.
Added in Saleor 3.23.
Triggers the following webhook events:
- CUSTOMER_TYPE_UPDATED (async): A customer type was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_TYPE_UPDATED], syncEvents: [])
customerTypeUnassignAttributes(attributeIds: [ID!]!, customerTypeId: ID!): CustomerTypeUnassignAttributes
Returns
CustomerTypeUnassignAttributes
Show return type
type CustomerTypeUnassignAttributes {
customerType: CustomerType
errors: [CustomerTypeUnassignAttributesError!]!
}Arguments
attributeIds
attributeIds · [ID!]!
The IDs of the attributes to unassign. Maximum of 100 items.
customerTypeId
customerTypeId · ID!
ID of the customer type from which the attributes should be unassigned.
Schema: Saleor 3.23.43. Download SDL.