libs/cart/driver/magento/src/injection-tokens/cart-mutation-queue.token.ts
import { inject } from '@angular/core';
import { Apollo } from 'apollo-angular';
import { createSingleInjectionToken } from '@daffodil/core';
import { DaffQueuedApollo } from '@daffodil/core/graphql';
export const {
token: DAFF_MAGENTO_CART_MUTATION_QUEUE,
/**
* Provider function for {@link DAFF_MAGENTO_CART_MUTATION_QUEUE}.
*/
provider: provideDaffCartMagentoMutationQueue,
} = createSingleInjectionToken<DaffQueuedApollo>(
'DAFF_MAGENTO_CART_MUTATION_QUEUE', {
providedIn: 'root',
factory: () => new DaffQueuedApollo(inject(Apollo)),
},
);