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