From 7c7be319d1c15f916117089a0b241bc1e063a8ad Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Sun, 27 Oct 2024 19:18:57 -0600 Subject: [PATCH] Return username in follow unfollow --- src/index.tsx | 18 ++++-------------- src/operations/user.gql | 8 ++------ 2 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 07f251e..0261cc4 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3173,10 +3173,7 @@ export type FollowUserMutationVariables = Exact<{ export type FollowUserMutation = { __typename?: "Mutation"; - followUser: { - __typename?: "UserGQL"; - followers?: Array<{ __typename?: "UserGQL"; username: string }> | null; - }; + followUser: { __typename?: "UserGQL"; username: string }; }; export type UnfollowUserMutationVariables = Exact<{ @@ -3185,10 +3182,7 @@ export type UnfollowUserMutationVariables = Exact<{ export type UnfollowUserMutation = { __typename?: "Mutation"; - unfollowUser: { - __typename?: "UserGQL"; - followers?: Array<{ __typename?: "UserGQL"; username: string }> | null; - }; + unfollowUser: { __typename?: "UserGQL"; username: string }; }; export type GetStreamMonitoringDetailsQueryVariables = Exact<{ @@ -5324,9 +5318,7 @@ export type GetUserTagsQueryResult = Apollo.QueryResult< export const FollowUserDocument = gql` mutation followUser($followedUserId: Int!) { followUser(followedUserId: $followedUserId) { - followers { - username - } + username } } `; @@ -5376,9 +5368,7 @@ export type FollowUserMutationOptions = Apollo.BaseMutationOptions< export const UnfollowUserDocument = gql` mutation unfollowUser($followedUserId: Int!) { unfollowUser(followedUserId: $followedUserId) { - followers { - username - } + username } } `; diff --git a/src/operations/user.gql b/src/operations/user.gql index a561d69..524f22b 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -89,16 +89,12 @@ query GetUserTags { mutation followUser($followedUserId: Int!) { followUser(followedUserId: $followedUserId) { - followers { - username - } + username } } mutation unfollowUser($followedUserId: Int!) { unfollowUser(followedUserId: $followedUserId) { - followers { - username - } + username } }