feat: Add following and followers to GetUser query
All checks were successful
Tests / Tests (pull_request) Successful in 21s
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:
@@ -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}
|
||||
|
||||
@@ -34,6 +34,12 @@ query getLoggedInUser {
|
||||
query GetUser($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
...UserFragment
|
||||
following {
|
||||
id
|
||||
}
|
||||
followers {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user