diff options
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 } }); |