added compareAtPriceRange to the Product object

This commit is contained in:
Aayush Rajagopalan 2023-05-31 16:50:31 +00:00
parent 30a080182c
commit 6f08795b2b
2 changed files with 14 additions and 0 deletions

View File

@ -14,6 +14,16 @@ const productFragment = /* GraphQL */ `
name name
values values
} }
compareAtPriceRange {
maxVariantPrice {
amount
currencyCode
}
minVariantPrice {
amount
currencyCode
}
}
priceRange { priceRange {
maxVariantPrice { maxVariantPrice {
amount amount

View File

@ -116,6 +116,10 @@ export type ShopifyProduct = {
description: string; description: string;
descriptionHtml: string; descriptionHtml: string;
options: ProductOption[]; options: ProductOption[];
compareAtPriceRange: {
maxVariantPrice: Money;
minVariantPrice: Money;
};
priceRange: { priceRange: {
maxVariantPrice: Money; maxVariantPrice: Money;
minVariantPrice: Money; minVariantPrice: Money;