Use logged in user for followers #106

Merged
kkathuang merged 1 commits from kat/use-logged-in-user into master 2024-10-30 21:52:43 -06:00
2 changed files with 7 additions and 8 deletions

View File

@ -3202,12 +3202,12 @@ export type UnfollowUserMutation = {
};
export type GetUserFollowingFollowersQueryVariables = Exact<{
userId: Scalars["Int"]["input"];
[key: string]: never;
}>;
export type GetUserFollowingFollowersQuery = {
__typename?: "Query";
getUser?: {
getLoggedInUser?: {
__typename?: "UserGQL";
following?: Array<{
__typename?: "UserGQL";
@ -5474,8 +5474,8 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
UnfollowUserMutationVariables
>;
export const GetUserFollowingFollowersDocument = gql`
query getUserFollowingFollowers($userId: Int!) {
getUser(userId: $userId) {
query getUserFollowingFollowers {
getLoggedInUser {
following {
id
username
@ -5500,12 +5500,11 @@ export const GetUserFollowingFollowersDocument = gql`
* @example
* const { data, loading, error } = useGetUserFollowingFollowersQuery({
* variables: {
* userId: // value for 'userId'
* },
* });
*/
export function useGetUserFollowingFollowersQuery(
baseOptions: Apollo.QueryHookOptions<
baseOptions?: Apollo.QueryHookOptions<
GetUserFollowingFollowersQuery,
GetUserFollowingFollowersQueryVariables
>,

View File

@ -112,8 +112,8 @@ mutation unfollowUser($followedUserId: Int!) {
}
}
query getUserFollowingFollowers($userId: Int!) {
getUser(userId: $userId) {
query getUserFollowingFollowers {
getLoggedInUser {
following {
id
username