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