CreateMergeCart.ts 792 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import { gql } from "@apollo/client";
  2. export const CREATE_MERGE_CART = gql`
  3. mutation createMergeCart(
  4. $cartId: Int!
  5. ) {
  6. createMergeCart(
  7. input: {
  8. cartId: $cartId
  9. }
  10. ) {
  11. mergeCart {
  12. id
  13. itemsQty
  14. taxAmount
  15. subtotal
  16. shippingAmount
  17. grandTotal
  18. paymentMethod
  19. paymentMethodTitle
  20. selectedShippingRate
  21. selectedShippingRateTitle
  22. items {
  23. edges {
  24. node {
  25. id
  26. cartId
  27. productId
  28. name
  29. price
  30. baseImage
  31. sku
  32. quantity
  33. type
  34. productUrlKey
  35. canChangeQty
  36. }
  37. }
  38. }
  39. }
  40. }
  41. }
  42. `;