22 lines
513 B
TypeScript
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,
|
|
});
|
|
}
|