]> git.r.bdr.sh - rbdr/forum/blobdiff - src/stores/topics.js
Add getForum pact, normalize stores
[rbdr/forum] / src / stores / topics.js
diff --git a/src/stores/topics.js b/src/stores/topics.js
new file mode 100644 (file)
index 0000000..c90f1a3
--- /dev/null
@@ -0,0 +1,4 @@
+import { store } from './apollo';
+import { GET_TOPIC } from '$/data/queries';
+
+export const getTopic = (id) => store({ key: 'topic', query: GET_TOPIC, variables: { id } });