new lighter weight queries

This commit is contained in:
Loewy
2024-04-23 11:49:42 -07:00
parent 5f33fae3d7
commit d51d2491ca
2 changed files with 240 additions and 0 deletions

View File

@@ -20,3 +20,33 @@ mutation EditUploadStream(
) {
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
}
query GetUploadStreams(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id
stream {
isCompleted
lowestUnuploadedSegmentIndex
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
query GetUploadStreamDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
id
stream {
isCompleted
lowestUnuploadedSegmentIndex
}
}
}