aboutsummaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/queries.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/data/queries.js b/src/data/queries.js
new file mode 100644
index 0000000..de223cb
--- /dev/null
+++ b/src/data/queries.js
@@ -0,0 +1,29 @@
+import { gql } from '@apollo/client/core';
+
+export const GET_FORUMS = gql`
+ query GetForums {
+ forums {
+ id
+ glyph
+ label
+ position
+ }
+ }
+`;
+
+export const GET_FORUM = gql`
+ query GetForum($id: ID!) {
+ forum(id: $id) {
+ id
+ glyph
+ label
+ position
+ topics {
+ id
+ title,
+ updated_at,
+ ttl
+ }
+ }
+ }
+`;