Compare commits

...

2 Commits

Author SHA1 Message Date
f140807886 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>
2024-06-05 13:34:41 -06:00
37a13f1418 add id's to new getVideo w/ metric queries to prevent cache merge issues
All checks were successful
Tests / Tests (pull_request) Successful in 12s
2024-06-05 11:51:15 -07:00
2 changed files with 13 additions and 2 deletions

View File

@ -1052,6 +1052,7 @@ export type GetAverageTimePerShotForVideoQuery = {
__typename?: "Query"; __typename?: "Query";
getVideo: { getVideo: {
__typename?: "VideoGQL"; __typename?: "VideoGQL";
id: number;
averageTimeBetweenShots?: number | null; averageTimeBetweenShots?: number | null;
}; };
}; };
@ -1062,7 +1063,11 @@ export type GetElapsedTimeForVideoQueryVariables = Exact<{
export type GetElapsedTimeForVideoQuery = { export type GetElapsedTimeForVideoQuery = {
__typename?: "Query"; __typename?: "Query";
getVideo: { __typename?: "VideoGQL"; elapsedTime?: number | null }; getVideo: {
__typename?: "VideoGQL";
id: number;
elapsedTime?: number | null;
};
}; };
export type GetMedianRunForVideoQueryVariables = Exact<{ export type GetMedianRunForVideoQueryVariables = Exact<{
@ -1071,7 +1076,7 @@ export type GetMedianRunForVideoQueryVariables = Exact<{
export type GetMedianRunForVideoQuery = { export type GetMedianRunForVideoQuery = {
__typename?: "Query"; __typename?: "Query";
getVideo: { __typename?: "VideoGQL"; medianRun?: number | null }; getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null };
}; };
export type CreateUploadStreamMutationVariables = Exact<{ export type CreateUploadStreamMutationVariables = Exact<{
@ -2394,6 +2399,7 @@ export type GetVideoQueryResult = Apollo.QueryResult<
export const GetAverageTimePerShotForVideoDocument = gql` export const GetAverageTimePerShotForVideoDocument = gql`
query GetAverageTimePerShotForVideo($videoId: Int!) { query GetAverageTimePerShotForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
averageTimeBetweenShots averageTimeBetweenShots
} }
} }
@ -2467,6 +2473,7 @@ export type GetAverageTimePerShotForVideoQueryResult = Apollo.QueryResult<
export const GetElapsedTimeForVideoDocument = gql` export const GetElapsedTimeForVideoDocument = gql`
query GetElapsedTimeForVideo($videoId: Int!) { query GetElapsedTimeForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
elapsedTime elapsedTime
} }
} }
@ -2540,6 +2547,7 @@ export type GetElapsedTimeForVideoQueryResult = Apollo.QueryResult<
export const GetMedianRunForVideoDocument = gql` export const GetMedianRunForVideoDocument = gql`
query GetMedianRunForVideo($videoId: Int!) { query GetMedianRunForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
medianRun medianRun
} }
} }

View File

@ -149,16 +149,19 @@ query GetVideo($videoId: Int!) {
query GetAverageTimePerShotForVideo($videoId: Int!) { query GetAverageTimePerShotForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
averageTimeBetweenShots averageTimeBetweenShots
} }
} }
query GetElapsedTimeForVideo($videoId: Int!) { query GetElapsedTimeForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
elapsedTime elapsedTime
} }
} }
query GetMedianRunForVideo($videoId: Int!) { query GetMedianRunForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id
medianRun medianRun
} }
} }