aboutsummaryrefslogtreecommitdiff
path: root/src/stores/topic.js
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-14 22:41:16 +0100
committerRuben Beltran del Rio <ruben@unlimited.pizza>2021-03-14 22:41:16 +0100
commit18ced3bfaff8ca40edb1a96e631ba1553a3a7a6d (patch)
tree450ee3c84e7400e99ba30261e705b2db619d9bcf /src/stores/topic.js
parentc1bc5993a694f6fd047a3881351827058042483b (diff)
Add stores for GraphQL data:
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 } });