aboutsummaryrefslogtreecommitdiff
path: root/src/data
diff options
context:
space:
mode:
authorRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
committerRuben Beltran del Rio <ruben@unlimited.pizza>2022-05-01 00:56:06 +0200
commita7cf03c192470cbab13edeb1aec99e0c66dede10 (patch)
tree581b4430d1de958dcb666bae80a7678332134602 /src/data
parent010f307346e525ac2e4239a0549d2c1a4d6d102b (diff)
Update / use typescript
Diffstat (limited to 'src/data')
-rw-r--r--src/data/.queries.js.icloudbin0 -> 158 bytes
-rw-r--r--src/data/queries.js90
2 files changed, 0 insertions, 90 deletions
diff --git a/src/data/.queries.js.icloud b/src/data/.queries.js.icloud
new file mode 100644
index 0000000..e22cbc0
--- /dev/null
+++ b/src/data/.queries.js.icloud
Binary files differ
diff --git a/src/data/queries.js b/src/data/queries.js
deleted file mode 100644
index 7364c0f..0000000
--- a/src/data/queries.js
+++ /dev/null
@@ -1,90 +0,0 @@
-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
- }
- }
- }
-`;
-
-export const GET_TAG = gql`
- query GetTag($id: ID!) {
- tag(id: $id) {
- id
- topics {
- id
- title
- updated_at
- ttl
- }
- }
- }
-`;
-
-export const GET_TOPIC = gql`
- query GetTopic($id: ID!) {
- topic(id: $id) {
- id
- title
- updated_at
- ttl
- forum {
- id
- glyph
- label
- }
- tags {
- id
- weight
- }
- posts {
- id
- text
- created_at
- author {
- id
- handle
- }
- }
- }
- }
-`;
-
-export const GET_POST = gql`
- query GetPost($id: ID!) {
- post(id: $id) {
- id
- text
- created_at
- author {
- id
- handle
- }
- topic {
- id
- title
- }
- }
- }
-`;