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