add lightweight query to refetch social interractions on comment mutation completion
All checks were successful
Tests / Tests (pull_request) Successful in 16s
All checks were successful
Tests / Tests (pull_request) Successful in 16s
This commit is contained in:
@@ -82,6 +82,57 @@ query GetVideoDetails($videoId: Int!) {
|
||||
}
|
||||
}
|
||||
|
||||
fragment UserSocialsFields on UserGQL {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
followers {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoSocialDetailsById($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
name
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
reaction
|
||||
}
|
||||
comments {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
replies {
|
||||
id
|
||||
message
|
||||
user {
|
||||
...UserSocialsFields
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
...VideoStreamMetadata
|
||||
|
Reference in New Issue
Block a user