13 lines
300 B
TypeScript
13 lines
300 B
TypeScript
'use server';
|
|
import { getClientWithToken } from '../apollo/client';
|
|
import * as GQL from '../types';
|
|
|
|
export async function getOrder(input: GQL.GetOrderQueryVariables) {
|
|
const { query } = await getClientWithToken();
|
|
|
|
return query({
|
|
query: GQL.GetOrderDocument,
|
|
variables: input,
|
|
});
|
|
}
|