Return username in follow unfollow #96

Merged
kkathuang merged 1 commits from kat/return-username into master 2024-10-27 19:19:42 -06:00
2 changed files with 6 additions and 20 deletions
Showing only changes of commit 7c7be319d1 - Show all commits

View File

@ -3173,10 +3173,7 @@ export type FollowUserMutationVariables = Exact<{
export type FollowUserMutation = { export type FollowUserMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
followUser: { followUser: { __typename?: "UserGQL"; username: string };
__typename?: "UserGQL";
followers?: Array<{ __typename?: "UserGQL"; username: string }> | null;
};
}; };
export type UnfollowUserMutationVariables = Exact<{ export type UnfollowUserMutationVariables = Exact<{
@ -3185,10 +3182,7 @@ export type UnfollowUserMutationVariables = Exact<{
export type UnfollowUserMutation = { export type UnfollowUserMutation = {
__typename?: "Mutation"; __typename?: "Mutation";
unfollowUser: { unfollowUser: { __typename?: "UserGQL"; username: string };
__typename?: "UserGQL";
followers?: Array<{ __typename?: "UserGQL"; username: string }> | null;
};
}; };
export type GetStreamMonitoringDetailsQueryVariables = Exact<{ export type GetStreamMonitoringDetailsQueryVariables = Exact<{
@ -5324,11 +5318,9 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
export const FollowUserDocument = gql` export const FollowUserDocument = gql`
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
followers {
username username
} }
} }
}
`; `;
export type FollowUserMutationFn = Apollo.MutationFunction< export type FollowUserMutationFn = Apollo.MutationFunction<
FollowUserMutation, FollowUserMutation,
@ -5376,11 +5368,9 @@ export type FollowUserMutationOptions = Apollo.BaseMutationOptions<
export const UnfollowUserDocument = gql` export const UnfollowUserDocument = gql`
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
followers {
username username
} }
} }
}
`; `;
export type UnfollowUserMutationFn = Apollo.MutationFunction< export type UnfollowUserMutationFn = Apollo.MutationFunction<
UnfollowUserMutation, UnfollowUserMutation,

View File

@ -89,16 +89,12 @@ query GetUserTags {
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
followers {
username username
} }
}
} }
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
followers {
username username
} }
}
} }