From 37a13f1418de83a9c53b987b24fbb0b8a4b8565f Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 5 Jun 2024 11:51:15 -0700 Subject: [PATCH] add id's to new getVideo w/ metric queries to prevent cache merge issues --- src/index.tsx | 12 ++++++++++-- src/operations/video.gql | 3 +++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 9eae9c5..6f2c7ef 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1052,6 +1052,7 @@ export type GetAverageTimePerShotForVideoQuery = { __typename?: "Query"; getVideo: { __typename?: "VideoGQL"; + id: number; averageTimeBetweenShots?: number | null; }; }; @@ -1062,7 +1063,11 @@ export type GetElapsedTimeForVideoQueryVariables = Exact<{ export type GetElapsedTimeForVideoQuery = { __typename?: "Query"; - getVideo: { __typename?: "VideoGQL"; elapsedTime?: number | null }; + getVideo: { + __typename?: "VideoGQL"; + id: number; + elapsedTime?: number | null; + }; }; export type GetMedianRunForVideoQueryVariables = Exact<{ @@ -1071,7 +1076,7 @@ export type GetMedianRunForVideoQueryVariables = Exact<{ export type GetMedianRunForVideoQuery = { __typename?: "Query"; - getVideo: { __typename?: "VideoGQL"; medianRun?: number | null }; + getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null }; }; export type CreateUploadStreamMutationVariables = Exact<{ @@ -2394,6 +2399,7 @@ export type GetVideoQueryResult = Apollo.QueryResult< export const GetAverageTimePerShotForVideoDocument = gql` query GetAverageTimePerShotForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id averageTimeBetweenShots } } @@ -2467,6 +2473,7 @@ export type GetAverageTimePerShotForVideoQueryResult = Apollo.QueryResult< export const GetElapsedTimeForVideoDocument = gql` query GetElapsedTimeForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id elapsedTime } } @@ -2540,6 +2547,7 @@ export type GetElapsedTimeForVideoQueryResult = Apollo.QueryResult< export const GetMedianRunForVideoDocument = gql` query GetMedianRunForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id medianRun } } diff --git a/src/operations/video.gql b/src/operations/video.gql index b020866..5c36a0b 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -149,16 +149,19 @@ query GetVideo($videoId: Int!) { query GetAverageTimePerShotForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id averageTimeBetweenShots } } query GetElapsedTimeForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id elapsedTime } } query GetMedianRunForVideo($videoId: Int!) { getVideo(videoId: $videoId) { + id medianRun } }