GitHub

ShopifyGetProductByUrlQuery

import { ShopifyGetProductByUrlQuery } from '@daffodil/driver/shopify'
type ShopifyGetProductByUrlQuery = {
    __typename?: 'QueryRoot';
    product?: {
        __typename?: 'Product';
        handle: string;
        id: string;
        title: string;
        description: string;
        availableForSale: boolean;
        onlineStoreUrl?: any | null;
        priceRange: {
            __typename?: 'ProductPriceRange';
            maxVariantPrice: {
                __typename?: 'MoneyV2';
                amount: any;
                currencyCode: CurrencyCode;
            };
            minVariantPrice: {
                __typename?: 'MoneyV2';
                amount: any;
                currencyCode: CurrencyCode;
            };
        };
        images: {
            __typename?: 'ImageConnection';
            nodes: Array<{
                __typename?: 'Image';
                id?: string | null;
                url: any;
                altText?: string | null;
            }>;
        };
    } | null;
}
Type Options
ShopifyGetProductByUrlQuery { __typename?: 'QueryRoot'; product?: { __typename?: 'Product'; handle: string; id: string; title: string; description: string; availableForSale: boolean; onlineStoreUrl?: any | null; priceRange: { __typename?: 'ProductPriceRange'; maxVariantPrice: { __typename?: 'MoneyV2'; amount: any; currencyCode: CurrencyCode; }; minVariantPrice: { __typename?: 'MoneyV2'; amount: any; currencyCode: CurrencyCode; }; }; images: { __typename?: 'ImageConnection'; nodes: Array<{ __typename?: 'Image'; id?: string | null; url: any; altText?: string | null; }>; }; } | null; }