From 985fa8b8e5f27cecb2b844ccbde1fb0aca0612a1 Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 11 Nov 2024 19:54:10 -0800 Subject: [PATCH 1/2] add count to return for get shots with just ids --- src/index.tsx | 2 ++ src/operations/shots.gql | 1 + 2 files changed, 3 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 89e6edf..a63ea80 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3014,6 +3014,7 @@ export type GetShotsWithJustIdsQuery = { __typename?: "Query"; getOrderedShots: { __typename?: "GetShotsResult"; + count?: number | null; shots: Array<{ __typename?: "ShotGQL"; id: number; videoId: number }>; }; }; @@ -5055,6 +5056,7 @@ export const GetShotsWithJustIdsDocument = gql` shotsOrdering: $shotsOrdering limit: $limit ) { + count shots { id videoId diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 4e6ab40..151a147 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -72,6 +72,7 @@ query GetShotsWithJustIds( shotsOrdering: $shotsOrdering limit: $limit ) { + count shots { id videoId From 9cc99d956ad8fd7023469fd4b5cc1a869de0b4cd Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 11 Nov 2024 20:07:58 -0800 Subject: [PATCH 2/2] add countRespectsLimit argument --- src/index.tsx | 4 ++++ src/operations/shots.gql | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index a63ea80..b4d09d0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -3008,6 +3008,7 @@ export type GetShotsWithJustIdsQueryVariables = Exact<{ filterInput: FilterInput; shotsOrdering?: InputMaybe; limit?: InputMaybe; + countRespectsLimit?: InputMaybe; }>; export type GetShotsWithJustIdsQuery = { @@ -5050,11 +5051,13 @@ export const GetShotsWithJustIdsDocument = gql` $filterInput: FilterInput! $shotsOrdering: GetShotsOrdering $limit: Int + $countRespectsLimit: Boolean ) { getOrderedShots( filterInput: $filterInput shotsOrdering: $shotsOrdering limit: $limit + countRespectsLimit: $countRespectsLimit ) { count shots { @@ -5080,6 +5083,7 @@ export const GetShotsWithJustIdsDocument = gql` * filterInput: // value for 'filterInput' * shotsOrdering: // value for 'shotsOrdering' * limit: // value for 'limit' + * countRespectsLimit: // value for 'countRespectsLimit' * }, * }); */ diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 151a147..811938c 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -66,11 +66,13 @@ query GetShotsWithJustIds( $filterInput: FilterInput! $shotsOrdering: GetShotsOrdering $limit: Int + $countRespectsLimit: Boolean ) { getOrderedShots( filterInput: $filterInput shotsOrdering: $shotsOrdering limit: $limit + countRespectsLimit: $countRespectsLimit ) { count shots {