From 163c6a4e0cd9854944f6b895387a755582dbe3bc Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Mon, 21 Oct 2024 12:07:01 -0600 Subject: [PATCH] Add following followers to user model --- src/index.tsx | 12 ++++++++++++ src/schema.gql | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 5e050c4..dec1089 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1918,11 +1918,13 @@ export type Mutation = { editProfileImageUri: UserGql; editUploadStream: Scalars["Boolean"]["output"]; editUser: UserGql; + followUser: UserGql; getHlsInitUploadLink: GetUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn; getUploadLink: GetUploadLinkReturn; setLoggerLevel: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"]; + unfollowUser: UserGql; updateShotAnnotations: UpdateShotAnnotationReturn; }; @@ -1957,6 +1959,10 @@ export type MutationEditUserArgs = { input: EditUserInputGql; }; +export type MutationFollowUserArgs = { + followedUserId: Scalars["Int"]["input"]; +}; + export type MutationGetHlsInitUploadLinkArgs = { videoId: Scalars["Int"]["input"]; }; @@ -1981,6 +1987,10 @@ export type MutationSetSegmentDurationArgs = { videoId: Scalars["Int"]["input"]; }; +export type MutationUnfollowUserArgs = { + followedUserId: Scalars["Int"]["input"]; +}; + export type MutationUpdateShotAnnotationsArgs = { annotations: Array; shotId: Scalars["Int"]["input"]; @@ -2412,6 +2422,8 @@ export type UserGql = { createdAt?: Maybe; fargoRating?: Maybe; firebaseUid: Scalars["String"]["output"]; + followers?: Maybe>; + following?: Maybe>; id: Scalars["Int"]["output"]; isAdmin: Scalars["Boolean"]["output"]; profileImageUri?: Maybe; diff --git a/src/schema.gql b/src/schema.gql index 824aadb..640f6e8 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -342,6 +342,8 @@ type UserGQL { profileImageUri: String createdAt: DateTime updatedAt: DateTime + following: [Int!] + followers: [Int!] } type ShotAnnotationGQL { @@ -594,6 +596,8 @@ type Mutation { ): GetProfileUploadLinkReturn! editProfileImageUri(profileImageUri: String!): UserGQL! editUser(input: EditUserInputGQL!): UserGQL! + followUser(followedUserId: Int!): UserGQL! + unfollowUser(followedUserId: Int!): UserGQL! createUploadStream( videoMetadata: VideoMetadataInput! ): CreateUploadStreamReturn! -- 2.46.1