Rename video endpoint to getUserVideos

This commit is contained in:
2024-04-05 15:46:16 -06:00
parent ddd7e2d50b
commit a5f90ab105
3 changed files with 43 additions and 18 deletions

View File

@@ -12,7 +12,12 @@ type Query {
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
getPlayTime(userId: Int!): UserPlayTimeGQL!
getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL!
getUserVideos(
userId: Int = null
limit: Int! = 5
after: String = null
filters: VideoFilterInput = null
): VideoHistoryGQL!
getVideo(videoId: Int!): VideoGQL!
}
@@ -179,7 +184,7 @@ type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoFeedGQL {
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
@@ -263,6 +268,10 @@ type PageInfoGQL {
endCursor: String
}
input VideoFilterInput {
isStreamCompleted: Boolean = null
}
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean!