Change feed operation to use limit instead of first in cursor

This commit is contained in:
Kat Huang 2024-02-22 19:23:28 -07:00
parent 2ce41be8cc
commit 4b41d3b039
3 changed files with 356 additions and 637 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
query GetFeed($first: Int! = 5, $after: String = null) { query GetFeed($limit: Int! = 5, $after: String = null) {
getVideoFeedForUser(first: $first, after: $after) { getVideoFeedForUser(limit: $limit, after: $after) {
videos { videos {
id id
name name

View File

@ -5,7 +5,7 @@ type Query {
getVideo(videoId: Int!): VideoGQL! getVideo(videoId: Int!): VideoGQL!
getShots(filterInput: FilterInput = null): [ShotGQL!]! getShots(filterInput: FilterInput = null): [ShotGQL!]!
getBucketSet(keyName: String!): BucketSetGQL getBucketSet(keyName: String!): BucketSetGQL
getVideoFeedForUser(first: Int! = 5, after: String = null): VideoFeedGQL! getVideoFeedForUser(limit: Int! = 5, after: String = null): VideoFeedGQL!
} }
type AggregateResultGQL { type AggregateResultGQL {
@ -49,9 +49,7 @@ type UserGQL {
statistics: UserStatisticsGQL! statistics: UserStatisticsGQL!
} }
""" """Date with time (isoformat)"""
Date with time (isoformat)
"""
scalar DateTime scalar DateTime
type UserStatisticsGQL { type UserStatisticsGQL {
@ -63,9 +61,7 @@ type UserStatisticsGQL {
medianRun: Decimal medianRun: Decimal
} }
""" """Decimal (fixed-point)"""
Decimal (fixed-point)
"""
scalar Decimal scalar Decimal
type VideoGQL { type VideoGQL {
@ -241,17 +237,9 @@ type PageInfoGQL {
type Mutation { type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL! createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
createUploadStream( createUploadStream(uploadMetadata: UploadMetadataInput, videoName: String = null): CreateUploadStreamReturn!
uploadMetadata: UploadMetadataInput
videoName: String = null
): CreateUploadStreamReturn!
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn! getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
terminateUploadStream( terminateUploadStream(videoId: Int!, videoName: String = null, gameType: String = null, tableSize: String = null): Boolean!
videoId: Int!
videoName: String = null
gameType: String = null
tableSize: String = null
): Boolean!
} }
input CreateBucketSetInput { input CreateBucketSetInput {