]>
Commit | Line | Data |
---|---|---|
1 | import { gql } from '@apollo/client/core'; | |
2 | ||
3 | export const GET_FORUMS = gql` | |
4 | query GetForums { | |
5 | forums { | |
6 | id | |
7 | glyph | |
8 | label | |
9 | position | |
10 | } | |
11 | } | |
12 | `; | |
13 | ||
14 | export 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 | `; |