# import PaginatorParts from '../fragments/paginator.fragment.graphql' query Coupon($id: ID, $code: String, $language: String) { coupon(id: $id, code: $code, language: $language) { id code type amount is_valid } } mutation VerifyCoupon($code: String!, $sub_total: Float!) { verifyCoupon(code: $code, sub_total: $sub_total) { is_valid coupon { id code type amount is_valid } message } } query Coupons($first: Int!, $page: Int, $language: String) { coupons(first: $first, page: $page, language: $language) { data { id code description type image { id original thumbnail } amount active_from expire_at created_at updated_at is_valid } paginatorInfo { ...PaginatorParts } } }