From fcbbc49687afeeecdc9388b367b1d7f2d0c76214 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Sun, 2 May 2021 13:37:11 +0200 Subject: Add getForum pact, normalize stores --- src/stores/posts.js | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 src/stores/posts.js (limited to 'src/stores/posts.js') diff --git a/src/stores/posts.js b/src/stores/posts.js new file mode 100644 index 0000000..0cbf1d5 --- /dev/null +++ b/src/stores/posts.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 } }); -- cgit