aboutsummaryrefslogtreecommitdiff
path: root/src/stores/post.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/stores/post.js')
-rw-r--r--src/stores/post.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/stores/post.js b/src/stores/post.js
new file mode 100644
index 0000000..ed19cd6
--- /dev/null
+++ b/src/stores/post.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 } });