aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/graphql/queries.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/graphql/queries.graphql')
-rw-r--r--frontend/src/graphql/queries.graphql57
1 files changed, 33 insertions, 24 deletions
diff --git a/frontend/src/graphql/queries.graphql b/frontend/src/graphql/queries.graphql
index d08140b..0b0e25c 100644
--- a/frontend/src/graphql/queries.graphql
+++ b/frontend/src/graphql/queries.graphql
@@ -5,41 +5,50 @@ query GetFeeds {
title
fetchedAt
isSubscribed
- articles {
- id
- isRead
- }
+ unreadCount
}
}
-query GetUnreadArticles {
- unreadArticles {
- id
- feedId
- guid
- title
- url
- isRead
- feed {
+query GetUnreadArticles($feedId: ID, $after: ID, $first: Int) {
+ unreadArticles(feedId: $feedId, after: $after, first: $first) {
+ articles {
id
+ feedId
+ guid
title
- isSubscribed
+ url
+ isRead
+ feed {
+ id
+ title
+ isSubscribed
+ }
+ }
+ pageInfo {
+ hasNextPage
+ endCursor
}
}
}
-query GetReadArticles {
- readArticles {
- id
- feedId
- guid
- title
- url
- isRead
- feed {
+query GetReadArticles($feedId: ID, $after: ID, $first: Int) {
+ readArticles(feedId: $feedId, after: $after, first: $first) {
+ articles {
id
+ feedId
+ guid
title
- isSubscribed
+ url
+ isRead
+ feed {
+ id
+ title
+ isSubscribed
+ }
+ }
+ pageInfo {
+ hasNextPage
+ endCursor
}
}
}