X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/73973edab9aaa81312ba80a68bfe34bf5abcecd9..fcbbc49687afeeecdc9388b367b1d7f2d0c76214:/src/stores/posts.js diff --git a/src/stores/posts.js b/src/stores/posts.js new file mode 100644 index 0000000..0cbf1d5 --- /dev/null +++ b/src/stores/posts.js @@ -0,0 +1,4 @@ +import { store } from './apollo'; +import { GET_POST } from '$/data/queries'; + +export const getPost = (id) => store({ key: 'post', query: GET_POST, variables: { id } });