Update get usernames ids #90

Merged
kkathuang merged 1 commits from kat/update-get-username-ids into master 2024-10-25 00:18:20 -06:00
2 changed files with 22 additions and 4 deletions
Showing only changes of commit b40554d38d - Show all commits

View File

@ -1886,6 +1886,12 @@ export type FloatShotOrdering = {
startingAt?: InputMaybe<Scalars["Float"]["input"]>; startingAt?: InputMaybe<Scalars["Float"]["input"]>;
}; };
export type FollowingUser = {
__typename?: "FollowingUser";
id: Scalars["Int"]["output"];
username: Scalars["String"]["output"];
};
export type GetProfileUploadLinkErrors = { export type GetProfileUploadLinkErrors = {
__typename?: "GetProfileUploadLinkErrors"; __typename?: "GetProfileUploadLinkErrors";
error: TooManyProfileImageUploadsErr; error: TooManyProfileImageUploadsErr;
@ -2527,7 +2533,7 @@ export type UsernamesAndFollowingResponse = {
__typename?: "UsernamesAndFollowingResponse"; __typename?: "UsernamesAndFollowingResponse";
followers: Array<Scalars["Int"]["output"]>; followers: Array<Scalars["Int"]["output"]>;
following: Array<Scalars["Int"]["output"]>; following: Array<Scalars["Int"]["output"]>;
usernames: Array<Scalars["String"]["output"]>; usernamesAndIds: Array<FollowingUser>;
}; };
export type VideoFilterInput = { export type VideoFilterInput = {
@ -3147,7 +3153,11 @@ export type GetUsernamesAndFollowingQuery = {
__typename?: "UsernamesAndFollowingResponse"; __typename?: "UsernamesAndFollowingResponse";
followers: Array<number>; followers: Array<number>;
following: Array<number>; following: Array<number>;
usernames: Array<string>; usernamesAndIds: Array<{
__typename?: "FollowingUser";
username: string;
id: number;
}>;
}; };
}; };
@ -5139,7 +5149,10 @@ export const GetUsernamesAndFollowingDocument = gql`
) { ) {
followers followers
following following
usernames usernamesAndIds {
username
id
}
} }
} }
`; `;

View File

@ -555,11 +555,16 @@ input CreatedAfter @oneOf {
} }
type UsernamesAndFollowingResponse { type UsernamesAndFollowingResponse {
usernames: [String!]! usernamesAndIds: [FollowingUser!]!
following: [Int!]! following: [Int!]!
followers: [Int!]! followers: [Int!]!
} }
type FollowingUser {
id: Int!
username: String!
}
type UserPlayTimeGQL { type UserPlayTimeGQL {
totalSeconds: Float! totalSeconds: Float!
} }