X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/18ced3bfaff8ca40edb1a96e631ba1553a3a7a6d..2a37b2ec11c46fc87dae084bc0a7659b198311aa:/src/data/queries.js diff --git a/src/data/queries.js b/src/data/queries.js index 93e4b23..7364c0f 100644 --- a/src/data/queries.js +++ b/src/data/queries.js @@ -1,90 +1,90 @@ import { gql } from '@apollo/client/core'; export const GET_FORUMS = gql` - query GetForums { - forums { - id - glyph - label - position - } - } + 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 - } - } - } + 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 - } - } - } + 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 - } - } - } - } + 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 - } - } - } + query GetPost($id: ID!) { + post(id: $id) { + id + text + created_at + author { + id + handle + } + topic { + id + title + } + } + } `;