]> git.r.bdr.sh - rbdr/forum/blob - src/lib/stores/topics.ts
0e39769cb78ddfa2f4245c9740397f150066a3a4
[rbdr/forum] / src / lib / stores / topics.ts
1 import { store } from './apollo';
2 import { GET_TOPIC } from '$lib/data/queries';
3
4 import type { Topic } from '$lib/data/types';
5
6 export const getTopic = (id: string) =>
7 store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } });