X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/bd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6..c1bc5993a694f6fd047a3881351827058042483b:/src/data/queries.js?ds=inline 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 + } + } + } +`;