Merge pull request 'Add id's to new getMetricForVideo queries to prevent cache merge issues' (#12) from loewy/add-ids-to-get-video-calls into master

Reviewed-on: #12
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
loewy 2024-06-05 13:34:41 -06:00
commit f140807886
2 changed files with 13 additions and 2 deletions

View File

@ -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
}
}

View File

@ -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
}
}