import { gql } from "@apollo/client"; export const PRODUCT_VARIANT_FRAGMENT = gql` fragment ProductVariantFragment on ProductVariant { id name sku quantityAvailable weight { value unit } media { id url alt } pricing { price { gross { amount currency } net { amount currency } } onSale discount { gross { amount currency } } } attributes { attribute { name slug } values { name slug } } } `; export const CHECKOUT_LINE_FRAGMENT = gql` fragment CheckoutLineFragment on CheckoutLine { id quantity totalPrice { gross { amount currency } } variant { id name sku product { id name slug media { id url alt } } pricing { price { gross { amount currency } } } } } `;