aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/src/graphql/mutations.graphql
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/graphql/mutations.graphql')
-rw-r--r--frontend/src/graphql/mutations.graphql52
1 files changed, 52 insertions, 0 deletions
diff --git a/frontend/src/graphql/mutations.graphql b/frontend/src/graphql/mutations.graphql
new file mode 100644
index 0000000..8bcbcec
--- /dev/null
+++ b/frontend/src/graphql/mutations.graphql
@@ -0,0 +1,52 @@
+mutation AddFeed($url: String!) {
+ addFeed(url: $url) {
+ id
+ url
+ title
+ fetchedAt
+ }
+}
+
+mutation RemoveFeed($id: ID!) {
+ removeFeed(id: $id)
+}
+
+mutation MarkArticleRead($id: ID!) {
+ markArticleRead(id: $id) {
+ id
+ feedId
+ guid
+ title
+ url
+ isRead
+ }
+}
+
+mutation MarkArticleUnread($id: ID!) {
+ markArticleUnread(id: $id) {
+ id
+ feedId
+ guid
+ title
+ url
+ isRead
+ }
+}
+
+mutation MarkFeedRead($id: ID!) {
+ markFeedRead(id: $id) {
+ id
+ url
+ title
+ fetchedAt
+ }
+}
+
+mutation MarkFeedUnread($id: ID!) {
+ markFeedUnread(id: $id) {
+ id
+ url
+ title
+ fetchedAt
+ }
+}