A function to trigger the updateCart mutation from your UI.
You can pass ApplyCartDiscountParams as parameters.
The function returns a promise that fulfills with
UpdateCartResponse.
Optional error
error:undefined | ApolloError
Any errors returned from the mutation
loading
loading:boolean
A boolean that indicates whether your mutation is in flight.
A function to trigger the
updateCart
mutation from your UI. You can passApplyCartDiscountParams
as parameters. The function returns a promise that fulfills withUpdateCartResponse
.