From 57c3ee0360ac6f1efc8e65596024047936fca1fc Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Tue, 12 Mar 2024 11:48:35 -0600 Subject: [PATCH] Use list int directly for user id input --- src/index.tsx | 8 ++------ src/schema.gql | 8 ++------ 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index ce253a7..5904479 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -137,8 +137,8 @@ export type FilterInput = { orFilters?: InputMaybe; shotDirection?: InputMaybe; targetPocketDistance?: InputMaybe; - userId?: InputMaybe; - videoId?: InputMaybe; + userId?: InputMaybe>; + videoId?: InputMaybe>; }; export type GetUploadLinkReturn = { @@ -161,10 +161,6 @@ export type HomographyInfoGql = { sourcePoints: PocketPointsGql; }; -export type InListFilter = { - inList?: InputMaybe>; -}; - export type IntPoint2D = { __typename?: "IntPoint2D"; x: Scalars["Int"]["output"]; diff --git a/src/schema.gql b/src/schema.gql index 56c52b1..de18093 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -57,8 +57,8 @@ input FilterInput { cueBallSpeed: CueBallSpeedInput = null intendedPocketType: IntendedPocketTypeInput = null shotDirection: ShotDirectionInput = null - videoId: InListFilter = null - userId: InListFilter = null + videoId: [Int!] = null + userId: [Int!] = null } input AndFilter { @@ -102,10 +102,6 @@ input ShotDirectionInput { value: EnumFilter! } -input InListFilter { - inList: [Int!] = null -} - type UserGQL { id: Int! firebaseUid: String!