]> git.r.bdr.sh - rbdr/forum/blobdiff - src/stores/posts.js
Add getForum pact, normalize stores
[rbdr/forum] / src / stores / posts.js
diff --git a/src/stores/posts.js b/src/stores/posts.js
new file mode 100644 (file)
index 0000000..0cbf1d5
--- /dev/null
@@ -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 } });