From 5fbc134c4212855f3b1bc2ca400035afc647fefa Mon Sep 17 00:00:00 2001 From: dean Date: Tue, 16 Dec 2025 15:53:59 -0800 Subject: [PATCH] feat: Add following and followers to GetUser query MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/index.tsx | 8 ++++++++ src/operations/user.gql | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index f2bdd11..658394c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -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} diff --git a/src/operations/user.gql b/src/operations/user.gql index bff032b..0a2b1c7 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -34,6 +34,12 @@ query getLoggedInUser { query GetUser($userId: Int!) { getUser(userId: $userId) { ...UserFragment + following { + id + } + followers { + id + } } } -- 2.49.1