From 63a07d58cad5645062726f1c9101a1be9e0b95be Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Sun, 29 Sep 2024 22:16:50 -0600 Subject: [PATCH] Add get shots by Ids --- src/index.tsx | 5 +++++ src/schema.gql | 1 + 2 files changed, 6 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index da78837..6ffa9f8 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1734,6 +1734,7 @@ export type Query = { getPlayTime: UserPlayTimeGql; getShotAnnotationTypes: Array; getShots: Array; + getShotsByIds: Array; getShotsWithMetadata: GetShotsResult; getUser?: Maybe; getUserTags: Array; @@ -1767,6 +1768,10 @@ export type QueryGetShotsArgs = { shotsPagination?: InputMaybe; }; +export type QueryGetShotsByIdsArgs = { + ids: Array; +}; + export type QueryGetShotsWithMetadataArgs = { filterInput: FilterInput; limit?: Scalars["Int"]["input"]; diff --git a/src/schema.gql b/src/schema.gql index 935eae3..8ba6c84 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -19,6 +19,7 @@ type Query { shotsPagination: GetShotsPagination = null limit: Int! = 500 ): [ShotGQL!]! + getShotsByIds(ids: [Int!]!): [ShotGQL!]! getShotAnnotationTypes(errorTypes: Boolean = false): [ShotAnnotationTypeGQL!]! getUser(userId: Int!): UserGQL getLoggedInUser: UserGQL