From ae163810943aba25c606c856c057da503cbf65d9 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Mon, 30 Sep 2024 21:15:27 -0600 Subject: [PATCH] Delete unused varibles --- src/index.tsx | 40 +--------------------------------------- src/operations/shots.gql | 16 +--------------- 2 files changed, 2 insertions(+), 54 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index f7ab38f..69ea356 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2420,18 +2420,6 @@ export type ShotFragmentFragment = { export type GetShotsByIdsQueryVariables = Exact<{ ids: Array | Scalars["Int"]["input"]; - includeCreatedAt?: Scalars["Boolean"]["input"]; - includeUpdatedAt?: Scalars["Boolean"]["input"]; - includeCueObjectFeatures?: Scalars["Boolean"]["input"]; - includePocketingIntentionFeatures?: Scalars["Boolean"]["input"]; - includeCueObjectDistance?: Scalars["Boolean"]["input"]; - includeCueObjectAngle?: Scalars["Boolean"]["input"]; - includeCueBallSpeed?: Scalars["Boolean"]["input"]; - includeSpinType?: Scalars["Boolean"]["input"]; - includeShotDirection?: Scalars["Boolean"]["input"]; - includeTargetPocketDistance?: Scalars["Boolean"]["input"]; - includeMake?: Scalars["Boolean"]["input"]; - includeIntendedPocketType?: Scalars["Boolean"]["input"]; }>; export type GetShotsByIdsQuery = { @@ -3833,21 +3821,7 @@ export type GetShotsWithMetadataQueryResult = Apollo.QueryResult< GetShotsWithMetadataQueryVariables >; export const GetShotsByIdsDocument = gql` - query GetShotsByIds( - $ids: [Int!]! - $includeCreatedAt: Boolean! = false - $includeUpdatedAt: Boolean! = false - $includeCueObjectFeatures: Boolean! = false - $includePocketingIntentionFeatures: Boolean! = false - $includeCueObjectDistance: Boolean! = false - $includeCueObjectAngle: Boolean! = false - $includeCueBallSpeed: Boolean! = false - $includeSpinType: Boolean! = false - $includeShotDirection: Boolean! = false - $includeTargetPocketDistance: Boolean! = false - $includeMake: Boolean! = false - $includeIntendedPocketType: Boolean! = false - ) { + query GetShotsByIds($ids: [Int!]!) { getShotsByIds(ids: $ids) { ...ShotFragment } @@ -3868,18 +3842,6 @@ export const GetShotsByIdsDocument = gql` * const { data, loading, error } = useGetShotsByIdsQuery({ * variables: { * ids: // value for 'ids' - * includeCreatedAt: // value for 'includeCreatedAt' - * includeUpdatedAt: // value for 'includeUpdatedAt' - * includeCueObjectFeatures: // value for 'includeCueObjectFeatures' - * includePocketingIntentionFeatures: // value for 'includePocketingIntentionFeatures' - * includeCueObjectDistance: // value for 'includeCueObjectDistance' - * includeCueObjectAngle: // value for 'includeCueObjectAngle' - * includeCueBallSpeed: // value for 'includeCueBallSpeed' - * includeSpinType: // value for 'includeSpinType' - * includeShotDirection: // value for 'includeShotDirection' - * includeTargetPocketDistance: // value for 'includeTargetPocketDistance' - * includeMake: // value for 'includeMake' - * includeIntendedPocketType: // value for 'includeIntendedPocketType' * }, * }); */ diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 2349053..e2481e8 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -185,21 +185,7 @@ fragment ShotFragment on ShotGQL { # Add other nested fields as required } -query GetShotsByIds( - $ids: [Int!]! - $includeCreatedAt: Boolean! = false - $includeUpdatedAt: Boolean! = false - $includeCueObjectFeatures: Boolean! = false - $includePocketingIntentionFeatures: Boolean! = false - $includeCueObjectDistance: Boolean! = false - $includeCueObjectAngle: Boolean! = false - $includeCueBallSpeed: Boolean! = false - $includeSpinType: Boolean! = false - $includeShotDirection: Boolean! = false - $includeTargetPocketDistance: Boolean! = false - $includeMake: Boolean! = false - $includeIntendedPocketType: Boolean! = false -) { +query GetShotsByIds($ids: [Int!]!) { getShotsByIds(ids: $ids) { ...ShotFragment # Since the fragment already includes all necessary fields,