From e1237363f07137835174e784921eac4bf0277f27 Mon Sep 17 00:00:00 2001 From: Micah Weitzman Date: Tue, 23 Jul 2024 18:53:39 -0700 Subject: [PATCH] Removed wrapper type --- src/index.tsx | 8 ++------ src/schema.gql | 7 ++----- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 76f3d88..5c6c8b9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1114,7 +1114,7 @@ export type Query = { getShotAnnotationTypes: Array; getShots: Array; getUser?: Maybe; - getUserTags: UserTagsGql; + getUserTags: Array; getUserVideos: VideoHistoryGql; getUsernames: Array; getVideo: VideoGql; @@ -1236,6 +1236,7 @@ export enum StreamSegmentTypeEnum { export type TagGql = { __typename?: "TagGQL"; + group?: Maybe; id: Scalars["Int"]["output"]; name: Scalars["String"]["output"]; }; @@ -1304,11 +1305,6 @@ export type UserPlayTimeGql = { totalSeconds: Scalars["Float"]["output"]; }; -export type UserTagsGql = { - __typename?: "UserTagsGQL"; - tags: Array; -}; - export type VideoFilterInput = { isStreamCompleted?: InputMaybe; requireCursorCompletion?: Scalars["Boolean"]["input"]; diff --git a/src/schema.gql b/src/schema.gql index c7d9a69..6c41273 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -24,7 +24,7 @@ type Query { after: String = null filters: VideoFilterInput = null ): VideoHistoryGQL! - getUserTags(userId: Int!): UserTagsGQL! + getUserTags(userId: Int!): [TagGQL!]! getVideo(videoId: Int!): VideoGQL! getVideos(videoIds: [Int!]!): [VideoGQL!]! } @@ -359,13 +359,10 @@ input VideoFilterInput { requireCursorCompletion: Boolean! = true } -type UserTagsGQL { - tags: [TagGQL!]! -} - type TagGQL { name: String! id: Int! + group: String } type Mutation {