Use logged in user for followers
All checks were successful
Tests / Tests (pull_request) Successful in 15s
All checks were successful
Tests / Tests (pull_request) Successful in 15s
This commit is contained in:
parent
f6e4a1bc0b
commit
05e3182e8b
@ -3202,12 +3202,12 @@ export type UnfollowUserMutation = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
||||||
userId: Scalars["Int"]["input"];
|
[key: string]: never;
|
||||||
}>;
|
}>;
|
||||||
|
|
||||||
export type GetUserFollowingFollowersQuery = {
|
export type GetUserFollowingFollowersQuery = {
|
||||||
__typename?: "Query";
|
__typename?: "Query";
|
||||||
getUser?: {
|
getLoggedInUser?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
following?: Array<{
|
following?: Array<{
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
@ -5474,8 +5474,8 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
UnfollowUserMutationVariables
|
UnfollowUserMutationVariables
|
||||||
>;
|
>;
|
||||||
export const GetUserFollowingFollowersDocument = gql`
|
export const GetUserFollowingFollowersDocument = gql`
|
||||||
query getUserFollowingFollowers($userId: Int!) {
|
query getUserFollowingFollowers {
|
||||||
getUser(userId: $userId) {
|
getLoggedInUser {
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
@ -5500,12 +5500,11 @@ export const GetUserFollowingFollowersDocument = gql`
|
|||||||
* @example
|
* @example
|
||||||
* const { data, loading, error } = useGetUserFollowingFollowersQuery({
|
* const { data, loading, error } = useGetUserFollowingFollowersQuery({
|
||||||
* variables: {
|
* variables: {
|
||||||
* userId: // value for 'userId'
|
|
||||||
* },
|
* },
|
||||||
* });
|
* });
|
||||||
*/
|
*/
|
||||||
export function useGetUserFollowingFollowersQuery(
|
export function useGetUserFollowingFollowersQuery(
|
||||||
baseOptions: Apollo.QueryHookOptions<
|
baseOptions?: Apollo.QueryHookOptions<
|
||||||
GetUserFollowingFollowersQuery,
|
GetUserFollowingFollowersQuery,
|
||||||
GetUserFollowingFollowersQueryVariables
|
GetUserFollowingFollowersQueryVariables
|
||||||
>,
|
>,
|
||||||
|
@ -112,8 +112,8 @@ mutation unfollowUser($followedUserId: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getUserFollowingFollowers($userId: Int!) {
|
query getUserFollowingFollowers {
|
||||||
getUser(userId: $userId) {
|
getLoggedInUser {
|
||||||
following {
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
|
Loading…
Reference in New Issue
Block a user