From 85cd37f70ff8883bf53ca13351184f75a9316c34 Mon Sep 17 00:00:00 2001 From: Loewy Date: Fri, 4 Apr 2025 12:30:02 -0700 Subject: [PATCH] add gql to fragment --- src/index.tsx | 26 ++++++++++++++++++++++++++ src/operations/feed.gql | 8 ++++++++ 2 files changed, 34 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index b9da9cb..dfd37eb 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3210,6 +3210,12 @@ export type GetFeedQuery = { status: ProcessingStatusEnum; }>; } | null; + reactions: Array<{ + __typename?: "ReactionGQL"; + videoId: number; + reaction: ReactionEnum; + user: { __typename?: "UserGQL"; id: number; username: string }; + }>; }>; pageInfo: { __typename?: "PageInfoGQL"; @@ -3263,6 +3269,12 @@ export type VideoCardFieldsFragment = { status: ProcessingStatusEnum; }>; } | null; + reactions: Array<{ + __typename?: "ReactionGQL"; + videoId: number; + reaction: ReactionEnum; + user: { __typename?: "UserGQL"; id: number; username: string }; + }>; }; export type GetVideoFeedQueryVariables = Exact<{ @@ -3325,6 +3337,12 @@ export type GetVideoFeedQuery = { status: ProcessingStatusEnum; }>; } | null; + reactions: Array<{ + __typename?: "ReactionGQL"; + videoId: number; + reaction: ReactionEnum; + user: { __typename?: "UserGQL"; id: number; username: string }; + }>; }>; pageInfo: { __typename?: "PageInfoGQL"; @@ -5016,6 +5034,14 @@ export const VideoCardFieldsFragmentDoc = gql` status } } + reactions { + videoId + user { + id + username + } + reaction + } } `; export const MedalFieldsFragmentDoc = gql` diff --git a/src/operations/feed.gql b/src/operations/feed.gql index 0e5b7bd..a077bc9 100644 --- a/src/operations/feed.gql +++ b/src/operations/feed.gql @@ -58,6 +58,14 @@ fragment VideoCardFields on VideoGQL { status } } + reactions { + videoId + user { + id + username + } + reaction + } } query GetVideoFeed(