aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/graphql/queries.graphql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-07-12 08:59:01 +0900
committernsfisis <nsfisis@gmail.com>2025-07-12 10:18:01 +0900
commit9da56e3023af305ba7c5fd49caab60ac8bb57100 (patch)
treeee6ada3798ffafac1742dbcdff2fbb6326640498 /frontend/src/graphql/queries.graphql
parent1e6d528f54744a7fd76ba5cac4e63d8b5abd5fd6 (diff)
downloadfeedaka-9da56e3023af305ba7c5fd49caab60ac8bb57100.tar.gz
feedaka-9da56e3023af305ba7c5fd49caab60ac8bb57100.tar.zst
feedaka-9da56e3023af305ba7c5fd49caab60ac8bb57100.zip
feat(frontend): setup GraphQL code generation
Diffstat (limited to 'frontend/src/graphql/queries.graphql')
-rw-r--r--frontend/src/graphql/queries.graphql73
1 files changed, 73 insertions, 0 deletions
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
+ }
+ }
+}