Revert changes to getShotsWithVideoGql #102

Closed
loewy wants to merge 1 commits from loewy/revert-get-shots-with-video-gql into master
2 changed files with 5 additions and 23 deletions
Showing only changes of commit 91a163a4b7 - Show all commits

View File

@ -2804,13 +2804,12 @@ export type UpdateShotAnnotationsMutation = {
export type GetShotsWithVideoGqlQueryVariables = Exact<{ export type GetShotsWithVideoGqlQueryVariables = Exact<{
filterInput: FilterInput; filterInput: FilterInput;
shotsOrdering?: InputMaybe<GetShotsOrdering>;
limit?: InputMaybe<Scalars["Int"]["input"]>; limit?: InputMaybe<Scalars["Int"]["input"]>;
}>; }>;
export type GetShotsWithVideoGqlQuery = { export type GetShotsWithVideoGqlQuery = {
__typename?: "Query"; __typename?: "Query";
getOrderedShots: { getShotsWithMetadata: {
__typename?: "GetShotsResult"; __typename?: "GetShotsResult";
shots: Array<{ shots: Array<{
__typename?: "ShotGQL"; __typename?: "ShotGQL";
@ -4498,16 +4497,8 @@ export type UpdateShotAnnotationsMutationOptions = Apollo.BaseMutationOptions<
UpdateShotAnnotationsMutationVariables UpdateShotAnnotationsMutationVariables
>; >;
export const GetShotsWithVideoGqlDocument = gql` export const GetShotsWithVideoGqlDocument = gql`
query GetShotsWithVideoGql( query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
$filterInput: FilterInput! getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
$shotsOrdering: GetShotsOrdering
$limit: Int
) {
getOrderedShots(
filterInput: $filterInput
shotsOrdering: $shotsOrdering
limit: $limit
) {
shots { shots {
id id
videoId videoId
@ -4533,7 +4524,6 @@ export const GetShotsWithVideoGqlDocument = gql`
* const { data, loading, error } = useGetShotsWithVideoGqlQuery({ * const { data, loading, error } = useGetShotsWithVideoGqlQuery({
* variables: { * variables: {
* filterInput: // value for 'filterInput' * filterInput: // value for 'filterInput'
* shotsOrdering: // value for 'shotsOrdering'
* limit: // value for 'limit' * limit: // value for 'limit'
* }, * },
* }); * });

View File

@ -40,16 +40,8 @@ mutation UpdateShotAnnotations(
} }
} }
query GetShotsWithVideoGql( query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) {
$filterInput: FilterInput! getShotsWithMetadata(filterInput: $filterInput, limit: $limit) {
$shotsOrdering: GetShotsOrdering
$limit: Int
) {
getOrderedShots(
filterInput: $filterInput
shotsOrdering: $shotsOrdering
limit: $limit
) {
shots { shots {
id id
videoId videoId