Compare commits

..

4 Commits

Author SHA1 Message Date
de9e7dea6a Return id for cache;
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-31 01:56:34 -06:00
05e3182e8b Use logged in user for followers
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-30 18:20:25 -06:00
f6e4a1bc0b Merge pull request 'Use getUser for getting followers' (#104) from kat/get-user-followers into master
Reviewed-on: #104
2024-10-30 16:19:53 -06:00
9d8155527d Use getUser for getting followers
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-10-30 16:18:25 -06:00
2 changed files with 34 additions and 4 deletions

View File

@@ -3182,8 +3182,17 @@ export type FollowUserMutation = {
followUser: { followUser: {
__typename?: "UserGQL"; __typename?: "UserGQL";
username: string; username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null; id: number;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null; following?: Array<{
__typename?: "UserGQL";
id: number;
username: string;
}> | null;
followers?: Array<{
__typename?: "UserGQL";
id: number;
username: string;
}> | null;
}; };
}; };
@@ -3196,8 +3205,17 @@ export type UnfollowUserMutation = {
unfollowUser: { unfollowUser: {
__typename?: "UserGQL"; __typename?: "UserGQL";
username: string; username: string;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null; id: number;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null; following?: Array<{
__typename?: "UserGQL";
id: number;
username: string;
}> | null;
followers?: Array<{
__typename?: "UserGQL";
id: number;
username: string;
}> | null;
}; };
}; };
@@ -5366,11 +5384,14 @@ export const FollowUserDocument = gql`
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
username username
id
following { following {
id id
username
} }
followers { followers {
id id
username
} }
} }
} }
@@ -5422,11 +5443,14 @@ export const UnfollowUserDocument = gql`
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
username username
id
following { following {
id id
username
} }
followers { followers {
id id
username
} }
} }
} }

View File

@@ -91,11 +91,14 @@ query GetUserTags {
mutation followUser($followedUserId: Int!) { mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) { followUser(followedUserId: $followedUserId) {
username username
id
following { following {
id id
username
} }
followers { followers {
id id
username
} }
} }
} }
@@ -103,11 +106,14 @@ mutation followUser($followedUserId: Int!) {
mutation unfollowUser($followedUserId: Int!) { mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) { unfollowUser(followedUserId: $followedUserId) {
username username
id
following { following {
id id
username
} }
followers { followers {
id id
username
} }
} }
} }