import { provideMagentoDriver } from '@daffodil/driver/magento'
Sets up the Magento Daffodil driver configuration for Magento's GraphQl API.
Under the hood, this creates an Apollo Client configuration.
function provideMagentoDriver(
endpoint: string | InjectionToken<string | UriFunction>
options: DaffMagentoDriverConfig = {
possibleTypes: MAGENTO_POSSIBLE_TYPES,
typePolicies
}
): Provider[]
Parameter | endpoint: string | InjectionToken |
---|---|
Description | The Magento store domain (e.g. "https://www.my-store.com/graphql") or an injection token for a string or function that returns a string |
Parameter | options: DaffMagentoDriverConfig |
---|---|
Default | { possibleTypes: MAGENTO_POSSIBLE_TYPES, typePolicies } |
Description |