addressSetDefault Mutation
Sets a default address for the given user.
Triggers the following webhook events:
- CUSTOMER_UPDATED (async): A customer was updated.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_UPDATED], syncEvents: [])
addressSetDefault(addressId: ID!, type: AddressTypeEnum!, userId: ID!): AddressSetDefault
Returns
Show return type
type AddressSetDefault {
user: User
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
}Arguments
addressId
addressId · ID!
ID of the address.
type
type · AddressTypeEnum!
The type of address.
userId
userId · ID!
ID of the user to change the address for.
Schema: Saleor 3.23.43. Download SDL.