diff options
| author | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-05-31 01:04:10 +0200 |
|---|---|---|
| committer | Ruben Beltran del Rio <ruben@unlimited.pizza> | 2022-05-31 01:04:10 +0200 |
| commit | 852ee620f0a2f6a83cf83eba860ca951b66bb7e2 (patch) | |
| tree | 3b1db871625c89f08c3c6422c135f84ec116943b /src/lib/data/queries.ts | |
| parent | d2cd7f1b4c318ac8587ab3dc1dec4a44b6d592fe (diff) | |
Use supabase
Diffstat (limited to 'src/lib/data/queries.ts')
| -rw-r--r-- | src/lib/data/queries.ts | 94 |
1 files changed, 0 insertions, 94 deletions
diff --git a/src/lib/data/queries.ts b/src/lib/data/queries.ts deleted file mode 100644 index 4def052..0000000 --- a/src/lib/data/queries.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { gql } from '@apollo/client/core'; - -export const GET_FORUMS = gql` - query GetForums { - forumsCollection { - edges { - node { - 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 - } - } - } -`; |