Skip to content

Commit

Permalink
Next video query
Browse files Browse the repository at this point in the history
  • Loading branch information
WRadoslaw committed Jan 31, 2024
1 parent 7c60151 commit 4d77adf
Show file tree
Hide file tree
Showing 4 changed files with 143 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

118 changes: 118 additions & 0 deletions packages/atlas/src/api/queries/__generated__/videos.generated.tsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions packages/atlas/src/api/queries/videos.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,16 @@ query GetSimiliarVideos($videoId: String!, $prevRecommId: String, $limit: Int, $
}
}

query GetNextVideo($videoId: String!, $prevRecommId: String, $where: VideoWhereInput) {
nextVideo(recommId: $prevRecommId, videoId: $videoId, where: $where) {
video {
...BasicVideoFields
}
numberNextRecommsCalls
recommId
}
}

# CHANGE: `channelId` and `categoryId` args were removed, ID is now `String`
mutation AddVideoView($videoId: String!) {
addVideoView(videoId: $videoId) {
Expand Down
2 changes: 1 addition & 1 deletion packages/atlas/src/api/schemas/orion.json

Large diffs are not rendered by default.

0 comments on commit 4d77adf

Please sign in to comment.