Schema Documentation
updateCoupon
Description
The updateCoupon mutation
Response
Returns an UpdateCouponPayload
Arguments
Name | Description |
---|---|
input - UpdateCouponInput! | Input for the updateCoupon mutation |
Example
Query
mutation updateCoupon($input: UpdateCouponInput!){ updateCoupon(input: $input){ clientMutationIdcodecoupon { ...CouponFragment } }}
Variables
{"input":UpdateCouponInput}
Response
{"data":{"updateCoupon":{"clientMutationId":"abc123","code":"xyz789","coupon":Coupon}}}