Add following followers to user model
All checks were successful
Tests / Tests (pull_request) Successful in 16s

This commit is contained in:
Kat Huang 2024-10-21 12:07:01 -06:00
parent b16b36588f
commit 724fe955b9
2 changed files with 16 additions and 2 deletions

View File

@ -1918,11 +1918,13 @@ export type Mutation = {
editProfileImageUri: UserGql; editProfileImageUri: UserGql;
editUploadStream: Scalars["Boolean"]["output"]; editUploadStream: Scalars["Boolean"]["output"];
editUser: UserGql; editUser: UserGql;
followUser: UserGql;
getHlsInitUploadLink: GetUploadLinkReturn; getHlsInitUploadLink: GetUploadLinkReturn;
getProfileImageUploadLink: GetProfileUploadLinkReturn; getProfileImageUploadLink: GetProfileUploadLinkReturn;
getUploadLink: GetUploadLinkReturn; getUploadLink: GetUploadLinkReturn;
setLoggerLevel: Scalars["Boolean"]["output"]; setLoggerLevel: Scalars["Boolean"]["output"];
setSegmentDuration: Scalars["Boolean"]["output"]; setSegmentDuration: Scalars["Boolean"]["output"];
unfollowUser: UserGql;
updateShotAnnotations: UpdateShotAnnotationReturn; updateShotAnnotations: UpdateShotAnnotationReturn;
}; };
@ -1957,6 +1959,10 @@ export type MutationEditUserArgs = {
input: EditUserInputGql; input: EditUserInputGql;
}; };
export type MutationFollowUserArgs = {
followedUserId: Scalars["Int"]["input"];
};
export type MutationGetHlsInitUploadLinkArgs = { export type MutationGetHlsInitUploadLinkArgs = {
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}; };
@ -1981,6 +1987,10 @@ export type MutationSetSegmentDurationArgs = {
videoId: Scalars["Int"]["input"]; videoId: Scalars["Int"]["input"];
}; };
export type MutationUnfollowUserArgs = {
followedUserId: Scalars["Int"]["input"];
};
export type MutationUpdateShotAnnotationsArgs = { export type MutationUpdateShotAnnotationsArgs = {
annotations: Array<UpdateAnnotationInputGql>; annotations: Array<UpdateAnnotationInputGql>;
shotId: Scalars["Int"]["input"]; shotId: Scalars["Int"]["input"];
@ -2096,7 +2106,6 @@ export type QueryGetFeedVideosArgs = {
after?: InputMaybe<Scalars["String"]["input"]>; after?: InputMaybe<Scalars["String"]["input"]>;
filters?: InputMaybe<VideoFilterInput>; filters?: InputMaybe<VideoFilterInput>;
limit?: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"];
userId?: InputMaybe<Scalars["Int"]["input"]>;
}; };
export type QueryGetOrderedShotsArgs = { export type QueryGetOrderedShotsArgs = {
@ -2413,6 +2422,8 @@ export type UserGql = {
createdAt?: Maybe<Scalars["DateTime"]["output"]>; createdAt?: Maybe<Scalars["DateTime"]["output"]>;
fargoRating?: Maybe<Scalars["Int"]["output"]>; fargoRating?: Maybe<Scalars["Int"]["output"]>;
firebaseUid: Scalars["String"]["output"]; firebaseUid: Scalars["String"]["output"];
followers?: Maybe<Array<Scalars["Int"]["output"]>>;
following?: Maybe<Array<Scalars["Int"]["output"]>>;
id: Scalars["Int"]["output"]; id: Scalars["Int"]["output"];
isAdmin: Scalars["Boolean"]["output"]; isAdmin: Scalars["Boolean"]["output"];
profileImageUri?: Maybe<Scalars["String"]["output"]>; profileImageUri?: Maybe<Scalars["String"]["output"]>;

View File

@ -46,7 +46,6 @@ type Query {
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL! getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
getVideos(videoIds: [Int!]!): [VideoGQL!]! getVideos(videoIds: [Int!]!): [VideoGQL!]!
getFeedVideos( getFeedVideos(
userId: Int = null
limit: Int! = 5 limit: Int! = 5
after: String = null after: String = null
filters: VideoFilterInput = null filters: VideoFilterInput = null
@ -343,6 +342,8 @@ type UserGQL {
profileImageUri: String profileImageUri: String
createdAt: DateTime createdAt: DateTime
updatedAt: DateTime updatedAt: DateTime
following: [Int!]
followers: [Int!]
} }
type ShotAnnotationGQL { type ShotAnnotationGQL {
@ -595,6 +596,8 @@ type Mutation {
): GetProfileUploadLinkReturn! ): GetProfileUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL! editProfileImageUri(profileImageUri: String!): UserGQL!
editUser(input: EditUserInputGQL!): UserGQL! editUser(input: EditUserInputGQL!): UserGQL!
followUser(followedUserId: Int!): UserGQL!
unfollowUser(followedUserId: Int!): UserGQL!
createUploadStream( createUploadStream(
videoMetadata: VideoMetadataInput! videoMetadata: VideoMetadataInput!
): CreateUploadStreamReturn! ): CreateUploadStreamReturn!