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

13 lines
323 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.CheckoutAttach,
variables,
headers,
})
return data
}