diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-05-02 13:37:11 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2021-05-02 13:37:11 +0200 |
| commit | fcbbc49687afeeecdc9388b367b1d7f2d0c76214 (patch) | |
| tree | ecb3d74ee6cb078f431a5e98d79e3384123d9108 /src/stores/posts.js | |
| parent | 73973edab9aaa81312ba80a68bfe34bf5abcecd9 (diff) | |
Add getForum pact, normalize stores
Diffstat (limited to 'src/stores/posts.js')
| -rw-r--r-- | src/stores/posts.js | 4 |
1 files changed, 4 insertions, 0 deletions
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 } }); |