2025-03-10 18:18:23 +03:00

22 lines
513 B
TypeScript

'use server';
import { getClientWithToken } from '../apollo/client';
import * as GQL from '../types';
export async function getServices(input: GQL.GetServicesQueryVariables) {
const { query } = await getClientWithToken();
return query({
query: GQL.GetServicesDocument,
variables: input,
});
}
export async function getService(input: GQL.GetServiceQueryVariables) {
const { query } = await getClientWithToken();
return query({
query: GQL.GetServiceDocument,
variables: input,
});
}