]> git.r.bdr.sh - rbdr/forum/blame - src/lib/stores/forums.ts
Remove outdated docs
[rbdr/forum] / src / lib / stores / forums.ts
CommitLineData
a7cf03c1
RBR
1import { store } from './apollo';
2import { GET_FORUM, GET_FORUMS } from '$lib/data/queries';
3
cac85db0
RBR
4export const getForum = (id: string) =>
5 store({ key: 'forum', query: GET_FORUM, variables: { id } });
a7cf03c1 6export const getForums = () => store({ key: 'forums', query: GET_FORUMS, initialValue: [] });