From 9da56e3023af305ba7c5fd49caab60ac8bb57100 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 12 Jul 2025 08:59:01 +0900 Subject: feat(frontend): setup GraphQL code generation --- frontend/src/graphql/queries.graphql | 73 ++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 frontend/src/graphql/queries.graphql (limited to 'frontend/src/graphql/queries.graphql') diff --git a/frontend/src/graphql/queries.graphql b/frontend/src/graphql/queries.graphql new file mode 100644 index 0000000..af4ac01 --- /dev/null +++ b/frontend/src/graphql/queries.graphql @@ -0,0 +1,73 @@ +query GetFeeds { + feeds { + id + url + title + fetchedAt + articles { + id + isRead + } + } +} + +query GetUnreadArticles { + unreadArticles { + id + feedId + guid + title + url + isRead + feed { + id + title + } + } +} + +query GetReadArticles { + readArticles { + id + feedId + guid + title + url + isRead + feed { + id + title + } + } +} + +query GetFeed($id: ID!) { + feed(id: $id) { + id + url + title + fetchedAt + articles { + id + guid + title + url + isRead + } + } +} + +query GetArticle($id: ID!) { + article(id: $id) { + id + feedId + guid + title + url + isRead + feed { + id + title + } + } +} -- cgit v1.2.3-70-g09d2