]>
Commit | Line | Data |
---|---|---|
a7cf03c1 RBR |
1 | import { store } from './apollo'; |
2 | import { GET_TOPIC } from '$lib/data/queries'; | |
3 | ||
be1ce532 RBR |
4 | import type { Topic } from '$lib/data/types'; |
5 | ||
cac85db0 | 6 | export const getTopic = (id: string) => |
be1ce532 | 7 | store<Topic>({ key: 'topic', query: GET_TOPIC, variables: { id } }); |