Render fetched shots
This commit is contained in:
21
graphql/query.ts
Normal file
21
graphql/query.ts
Normal 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)
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user