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