gil--/gatsby-starter-shopifypwa

View on GitHub
src/helpers/gqlFragments.js

Summary

Maintainability
A
0 mins
Test Coverage
import gql from 'graphql-tag'

export const ReturnFieldsCheckout = gql`
fragment ReturnFieldsCheckout on Checkout {
    id
    webUrl
    totalTax
    subtotalPrice
    totalPrice
    note
    currencyCode
    taxesIncluded
    lineItems(first: 250) {
        edges {
            node {
                id
                title
                quantity
                variant {
                    sku
                    price
                    compareAtPrice
                    selectedOptions {
                        name
                        value
                    }
                }
            }
        }
    }
}
`