import { store } from './apollo';
-import { GET_FORUMS } from '$data/queries';
+import { GET_FORUM, GET_FORUMS } from '$/data/queries';
-export const forums = store({ key: 'forums', query: GET_FORUMS, initialValue: [] });
+export const getForum = (id) => store({ key: 'forum', query: GET_FORUM, variables: { id } });
+export const getForums = () => store({ key: 'forums', query: GET_FORUMS, initialValue: [] });