Compare commits
3 Commits
kat/get-us
...
kat/use-lo
Author | SHA1 | Date | |
---|---|---|---|
de9e7dea6a | |||
05e3182e8b | |||
f6e4a1bc0b |
@@ -3182,8 +3182,17 @@ export type FollowUserMutation = {
|
||||
followUser: {
|
||||
__typename?: "UserGQL";
|
||||
username: string;
|
||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -3196,19 +3205,29 @@ export type UnfollowUserMutation = {
|
||||
unfollowUser: {
|
||||
__typename?: "UserGQL";
|
||||
username: string;
|
||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
followers?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
}> | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
||||
userId: Scalars["Int"]["input"];
|
||||
[key: string]: never;
|
||||
}>;
|
||||
|
||||
export type GetUserFollowingFollowersQuery = {
|
||||
__typename?: "Query";
|
||||
getUser?: {
|
||||
getLoggedInUser?: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
following?: Array<{
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
@@ -5365,11 +5384,14 @@ export const FollowUserDocument = gql`
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5421,11 +5443,14 @@ export const UnfollowUserDocument = gql`
|
||||
mutation unfollowUser($followedUserId: Int!) {
|
||||
unfollowUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -5474,8 +5499,9 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
|
||||
UnfollowUserMutationVariables
|
||||
>;
|
||||
export const GetUserFollowingFollowersDocument = gql`
|
||||
query getUserFollowingFollowers($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
query getUserFollowingFollowers {
|
||||
getLoggedInUser {
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
@@ -5500,12 +5526,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
|
||||
>,
|
||||
|
@@ -91,11 +91,14 @@ query GetUserTags {
|
||||
mutation followUser($followedUserId: Int!) {
|
||||
followUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -103,17 +106,21 @@ mutation followUser($followedUserId: Int!) {
|
||||
mutation unfollowUser($followedUserId: Int!) {
|
||||
unfollowUser(followedUserId: $followedUserId) {
|
||||
username
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
}
|
||||
followers {
|
||||
id
|
||||
username
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query getUserFollowingFollowers($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
query getUserFollowingFollowers {
|
||||
getLoggedInUser {
|
||||
id
|
||||
following {
|
||||
id
|
||||
username
|
||||
|
Reference in New Issue
Block a user