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