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