Render fetched shots

This commit is contained in:
2024-01-08 22:14:21 -07:00
parent 376d695416
commit 5192212e0e
6 changed files with 53 additions and 14 deletions

21
graphql/query.ts Normal file
View File

@@ -0,0 +1,21 @@
import { gql } from "@apollo/client";
export const GET_SHOTS = gql`
query GetShots(
$includeCueObjectAngle: Boolean! = false
$includeCueObjectDistance: Boolean! = false
) {
getShots {
id
videoId
features {
...ShotFeatures
}
}
}
fragment ShotFeatures on ShotFeaturesGQL {
cueObjectAngle @include(if: $includeCueObjectAngle)
cueObjectDistance @include(if: $includeCueObjectDistance)
}
`;