Skip to content

Instantly share code, notes, and snippets.

@ShayneP
Created June 28, 2021 16:47

Revisions

  1. ShayneP created this gist Jun 28, 2021.
    29 changes: 29 additions & 0 deletions inContext_example.graphql
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,29 @@
    query productPriceRanges @inContext(country: CA) {
    products(first: 1) {
    edges {
    node {
    title
    priceRange {
    minVariantPrice {
    amount
    currencyCode
    }
    maxVariantPrice {
    amount
    currencyCode
    }
    }
    compareAtPriceRange {
    minVariantPrice {
    amount
    currencyCode
    }
    maxVariantPrice {
    amount
    currencyCode
    }
    }
    }
    }
    }
    }