aboutsummaryrefslogtreecommitdiff
path: root/src/lib/stores/topics.ts
blob: 0e39769cb78ddfa2f4245c9740397f150066a3a4 (plain)
1
2
3
4
5
6
7
import { store } from './apollo';
import { GET_TOPIC } from '$lib/data/queries';

import type { Topic } from '$lib/data/types';

export const getTopic = (id: string) =>
	store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } });