GetShotsWithMetadata accepts ids #68

Merged
kkathuang merged 1 commits from kat/get-ids-back into master 2024-10-03 12:36:36 -06:00
2 changed files with 9 additions and 0 deletions
Showing only changes of commit 478c04215f - Show all commits

View File

@ -2255,6 +2255,7 @@ export type GetShotsWithMetadataQueryVariables = Exact<{
filterInput: FilterInput; filterInput: FilterInput;
shotsPagination?: InputMaybe<GetShotsPagination>; shotsPagination?: InputMaybe<GetShotsPagination>;
limit?: InputMaybe<Scalars["Int"]["input"]>; limit?: InputMaybe<Scalars["Int"]["input"]>;
ids?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
}>; }>;
export type GetShotsWithMetadataQuery = { export type GetShotsWithMetadataQuery = {
@ -2262,6 +2263,7 @@ export type GetShotsWithMetadataQuery = {
getShotsWithMetadata: { getShotsWithMetadata: {
__typename?: "GetShotsResult"; __typename?: "GetShotsResult";
count?: number | null; count?: number | null;
ids: Array<number>;
shots: Array<{ shots: Array<{
__typename?: "ShotGQL"; __typename?: "ShotGQL";
id: number; id: number;
@ -3493,16 +3495,19 @@ export const GetShotsWithMetadataDocument = gql`
$filterInput: FilterInput! $filterInput: FilterInput!
$shotsPagination: GetShotsPagination $shotsPagination: GetShotsPagination
$limit: Int $limit: Int
$ids: [Int!]
) { ) {
getShotsWithMetadata( getShotsWithMetadata(
filterInput: $filterInput filterInput: $filterInput
shotsPagination: $shotsPagination shotsPagination: $shotsPagination
limit: $limit limit: $limit
ids: $ids
) { ) {
count count
shots { shots {
...ShotWithAllFeatures ...ShotWithAllFeatures
} }
ids
} }
} }
${ShotWithAllFeaturesFragmentDoc} ${ShotWithAllFeaturesFragmentDoc}
@ -3523,6 +3528,7 @@ export const GetShotsWithMetadataDocument = gql`
* filterInput: // value for 'filterInput' * filterInput: // value for 'filterInput'
* shotsPagination: // value for 'shotsPagination' * shotsPagination: // value for 'shotsPagination'
* limit: // value for 'limit' * limit: // value for 'limit'
* ids: // value for 'ids'
* }, * },
* }); * });
*/ */

View File

@ -21,16 +21,19 @@ query GetShotsWithMetadata(
$filterInput: FilterInput! $filterInput: FilterInput!
$shotsPagination: GetShotsPagination $shotsPagination: GetShotsPagination
$limit: Int $limit: Int
$ids: [Int!]
) { ) {
getShotsWithMetadata( getShotsWithMetadata(
filterInput: $filterInput filterInput: $filterInput
shotsPagination: $shotsPagination shotsPagination: $shotsPagination
limit: $limit limit: $limit
ids: $ids
) { ) {
count count
shots { shots {
...ShotWithAllFeatures ...ShotWithAllFeatures
} }
ids
} }
} }