From 5d93f7166ef154f7a5b4e8ffbc967224eaff3718 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 19 Oct 2024 21:27:57 -0600 Subject: [PATCH] Use getOrderedShots --- src/index.tsx | 12 ++++++------ src/operations/shots.gql | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 17be9a8..7719598 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2594,14 +2594,14 @@ export type GetShotsWithVideoGqlQuery = { export type GetShotsWithMetadataFilterResultQueryVariables = Exact<{ filterInput: FilterInput; - shotsPagination?: InputMaybe; + shotsOrdering?: InputMaybe; limit?: InputMaybe; ids?: InputMaybe | Scalars["Int"]["input"]>; }>; export type GetShotsWithMetadataFilterResultQuery = { __typename?: "Query"; - getShotsWithMetadata: { + getOrderedShots: { __typename?: "GetShotsResult"; count?: number | null; ids: Array; @@ -4167,13 +4167,13 @@ export type GetShotsWithVideoGqlQueryResult = Apollo.QueryResult< export const GetShotsWithMetadataFilterResultDocument = gql` query GetShotsWithMetadataFilterResult( $filterInput: FilterInput! - $shotsPagination: GetShotsPagination + $shotsOrdering: GetShotsOrdering $limit: Int $ids: [Int!] ) { - getShotsWithMetadata( + getOrderedShots( filterInput: $filterInput - shotsPagination: $shotsPagination + shotsOrdering: $shotsOrdering limit: $limit ids: $ids ) { @@ -4200,7 +4200,7 @@ export const GetShotsWithMetadataFilterResultDocument = gql` * const { data, loading, error } = useGetShotsWithMetadataFilterResultQuery({ * variables: { * filterInput: // value for 'filterInput' - * shotsPagination: // value for 'shotsPagination' + * shotsOrdering: // value for 'shotsOrdering' * limit: // value for 'limit' * ids: // value for 'ids' * }, diff --git a/src/operations/shots.gql b/src/operations/shots.gql index a04d574..221fc6b 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -34,13 +34,13 @@ query GetShotsWithVideoGql($filterInput: FilterInput!, $limit: Int) { ## Reserved for playlists (which are created from a filter) query GetShotsWithMetadataFilterResult( $filterInput: FilterInput! - $shotsPagination: GetShotsPagination + $shotsOrdering: GetShotsOrdering $limit: Int $ids: [Int!] ) { - getShotsWithMetadata( + getOrderedShots( filterInput: $filterInput - shotsPagination: $shotsPagination + shotsOrdering: $shotsOrdering limit: $limit ids: $ids ) {