Use getUser for getting followers
All checks were successful
Tests / Tests (pull_request) Successful in 8s
All checks were successful
Tests / Tests (pull_request) Successful in 8s
This commit is contained in:
parent
8690e81029
commit
9d8155527d
@ -3202,14 +3202,13 @@ export type UnfollowUserMutation = {
|
||||
};
|
||||
|
||||
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
||||
[key: string]: never;
|
||||
userId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetUserFollowingFollowersQuery = {
|
||||
__typename?: "Query";
|
||||
getLoggedInUser?: {
|
||||
getUser?: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
@ -5475,9 +5474,8 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
||||
UnfollowUserMutationVariables
|
||||
>;
|
||||
export const GetUserFollowingFollowersDocument = gql`
|
||||
query getUserFollowingFollowers {
|
||||
getLoggedInUser {
|
||||
id
|
||||
query getUserFollowingFollowers($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
following {
|
||||
id
|
||||
username
|
||||
@ -5502,11 +5500,12 @@ 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
|
||||
>,
|
||||
|
@ -112,9 +112,8 @@ mutation unfollowUser($followedUserId: Int!) {
|
||||
}
|
||||
}
|
||||
|
||||
query getUserFollowingFollowers {
|
||||
getLoggedInUser {
|
||||
id
|
||||
query getUserFollowingFollowers($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
following {
|
||||
id
|
||||
username
|
||||
|
Loading…
Reference in New Issue
Block a user