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/mutations.graphql | 52 ++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 frontend/src/graphql/mutations.graphql (limited to 'frontend/src/graphql/mutations.graphql') 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 + } +} -- cgit v1.2.3-70-g09d2