just gql stuff + use it on uncompletedStreams hook

This commit is contained in:
2024-05-06 15:16:06 -07:00
parent d4b75bcb71
commit 8378f7ae0b
3 changed files with 146 additions and 2 deletions

View File

@@ -36,6 +36,28 @@ query GetUploadStreams(
}
}
}
query GetUploadStreamsWithDetails(
$limit: Int! = 5
$after: String = null
$filters: VideoFilterInput = null
) {
getUserVideos(limit: $limit, after: $after, filters: $filters) {
videos {
id
name
startTime
stream {
isCompleted
lastIntendedSegmentBound
uploadCompletionCursor
}
}
pageInfo {
hasNextPage
endCursor
}
}
}
query GetUploadStreamDetails($videoId: Int!) {
getVideo(videoId: $videoId) {