]> git.r.bdr.sh - rbdr/forum/blame - src/lib/stores/posts.ts
Update apollo
[rbdr/forum] / src / lib / stores / posts.ts
CommitLineData
a7cf03c1
RBR
1import { store } from './apollo';
2import { GET_POST } from '$lib/data/queries';
3
be1ce532
RBR
4import type { Post } from '$lib/data/types';
5
6export const getPost = (id: string) =>
7 store<Post>({ key: 'post', query: GET_POST, variables: { id } });