]> git.r.bdr.sh - rbdr/forum/blame - src/data/queries.js
Use routify and GraphQL server
[rbdr/forum] / src / data / queries.js
CommitLineData
c1bc5993
RBR
1import { gql } from '@apollo/client/core';
2
3export const GET_FORUMS = gql`
4 query GetForums {
5 forums {
6 id
7 glyph
8 label
9 position
10 }
11 }
12`;
13
14export const GET_FORUM = gql`
15 query GetForum($id: ID!) {
16 forum(id: $id) {
17 id
18 glyph
19 label
20 position
21 topics {
22 id
23 title,
24 updated_at,
25 ttl
26 }
27 }
28 }
29`;