GitHub

provideShopifyApolloDriver

function

import { provideShopifyApolloDriver } from '@daffodil/driver/shopify'

Provides an Apollo client configuration for Shopify's Storefront API.

function provideShopifyApolloDriver(
  domain: string
  accessToken: string
): Provider

Parameters

Parameterdomain: string
Description

The Shopify store domain (e.g. "https://daffodil-demo-alpha.myshopify.com")

ParameteraccessToken: string
Description

The Shopify Storefront API access token.