feat: Add following and followers to GetUser query
All checks were successful
Tests / Tests (pull_request) Successful in 21s

Adds following and followers arrays to the GetUser query to support
displaying follower/following counts on other users' profiles.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
dean
2025-12-16 15:53:59 -08:00
parent f67288d387
commit 5fbc134c42
2 changed files with 14 additions and 0 deletions

View File

@@ -5387,6 +5387,8 @@ export type GetUserQuery = {
updatedAt?: any | null;
videosPrivateByDefault?: boolean | null;
agreesToMarketing?: boolean | null;
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
} | null;
};
@@ -10894,6 +10896,12 @@ export const GetUserDocument = gql`
query GetUser($userId: Int!) {
getUser(userId: $userId) {
...UserFragment
following {
id
}
followers {
id
}
}
}
${UserFragmentFragmentDoc}

View File

@@ -34,6 +34,12 @@ query getLoggedInUser {
query GetUser($userId: Int!) {
getUser(userId: $userId) {
...UserFragment
following {
id
}
followers {
id
}
}
}