Add username

This commit is contained in:
Ivan Malison 2024-02-24 12:59:27 -07:00 committed by Dean
parent 76ed63395c
commit 3bce7ea344
3 changed files with 9 additions and 0 deletions

View File

@ -352,6 +352,7 @@ export type VideoGql = {
makePercentage: Scalars["Float"]["output"]; makePercentage: Scalars["Float"]["output"];
medianRun?: Maybe<Scalars["Float"]["output"]>; medianRun?: Maybe<Scalars["Float"]["output"]>;
name?: Maybe<Scalars["String"]["output"]>; name?: Maybe<Scalars["String"]["output"]>;
owner?: Maybe<UserGql>;
shots: Array<ShotGql>; shots: Array<ShotGql>;
startTime?: Maybe<Scalars["DateTime"]["output"]>; startTime?: Maybe<Scalars["DateTime"]["output"]>;
stream?: Maybe<UploadStreamGql>; stream?: Maybe<UploadStreamGql>;
@ -415,6 +416,7 @@ export type GetFeedQuery = {
startTime?: any | null; startTime?: any | null;
endTime?: any | null; endTime?: any | null;
elapsedTime?: number | null; elapsedTime?: number | null;
owner?: { __typename?: "UserGQL"; username: string } | null;
shots: Array<{ shots: Array<{
__typename?: "ShotGQL"; __typename?: "ShotGQL";
id?: number | null; id?: number | null;
@ -612,6 +614,9 @@ export const GetFeedDocument = gql`
getVideoFeedForUser(limit: $limit, after: $after) { getVideoFeedForUser(limit: $limit, after: $after) {
videos { videos {
id id
owner {
username
}
name name
totalShotsMade totalShotsMade
totalShots totalShots

View File

@ -2,6 +2,9 @@ query GetFeed($limit: Int! = 5, $after: String = null) {
getVideoFeedForUser(limit: $limit, after: $after) { getVideoFeedForUser(limit: $limit, after: $after) {
videos { videos {
id id
owner {
username
}
name name
totalShotsMade totalShotsMade
totalShots totalShots

View File

@ -70,6 +70,7 @@ scalar Decimal
type VideoGQL { type VideoGQL {
id: Int! id: Int!
owner: UserGQL
name: String name: String
totalShotsMade: Int! totalShotsMade: Int!
totalShots: Int! totalShots: Int!