diff options
Diffstat (limited to 'frontend/src/graphql/queries.graphql')
| -rw-r--r-- | frontend/src/graphql/queries.graphql | 73 |
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 + } + } +} |
