Compare commits

...

2 Commits

Author SHA1 Message Date
1710ae451c Merge pull request 'Return id for cache;' (#107) from kat/use-logged-in-user into master
Reviewed-on: #107
2024-10-31 01:57:38 -06:00
de9e7dea6a Return id for cache;
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-10-31 01:56:34 -06:00
2 changed files with 37 additions and 4 deletions

View File

@ -3235,8 +3235,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;
};
};
@ -3249,8 +3258,17 @@ 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;
};
};
@ -3262,6 +3280,7 @@ export type GetUserFollowingFollowersQuery = {
__typename?: "Query";
getLoggedInUser?: {
__typename?: "UserGQL";
id: number;
following?: Array<{
__typename?: "UserGQL";
id: number;
@ -5418,11 +5437,14 @@ export const FollowUserDocument = gql`
mutation followUser($followedUserId: Int!) {
followUser(followedUserId: $followedUserId) {
username
id
following {
id
username
}
followers {
id
username
}
}
}
@ -5474,11 +5496,14 @@ export const UnfollowUserDocument = gql`
mutation unfollowUser($followedUserId: Int!) {
unfollowUser(followedUserId: $followedUserId) {
username
id
following {
id
username
}
followers {
id
username
}
}
}
@ -5529,6 +5554,7 @@ export type UnfollowUserMutationOptions = Apollo.BaseMutationOptions<
export const GetUserFollowingFollowersDocument = gql`
query getUserFollowingFollowers {
getLoggedInUser {
id
following {
id
username

View File

@ -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 {
getLoggedInUser {
id
following {
id
username