commerce/framework/saleor/utils/checkout-attach.ts
2021-06-09 17:02:13 +02:00

17 lines
333 B
TypeScript

import * as mutation from './mutations'
import { CheckoutCustomerAttach } from '../schema'
export const checkoutAttach = async (
fetch: any,
{ variables, headers }: any,
): Promise<CheckoutCustomerAttach> => {
const data = await fetch({
query: mutation.AttachCheckout,
variables,
headers
})
return data;
}