railbird-gql/graphql/query.ts

35 lines
996 B
TypeScript
Raw Normal View History

2024-01-08 22:14:21 -07:00
import { gql } from "@apollo/client";
export const GET_SHOTS = gql`
query GetShots(
2024-01-09 00:45:18 -07:00
$filterInput: FilterInput
2024-01-08 22:14:21 -07:00
$includeCueObjectDistance: Boolean! = false
2024-01-08 22:31:08 -07:00
$includeCueObjectAngle: Boolean! = false
$includeCueBallSpeed: Boolean! = false
$includeShotDirection: Boolean! = false
2024-01-14 17:38:08 -07:00
$includeTargetPocketDistance: Boolean! = false
$includeMake: Boolean! = false
$includeIntendedPocketType: Boolean! = false
2024-01-08 22:14:21 -07:00
) {
2024-01-09 00:45:18 -07:00
getShots(filterInput: $filterInput) {
2024-01-08 22:14:21 -07:00
id
videoId
2024-01-08 22:31:08 -07:00
startFrame
endFrame
createdAt
updatedAt
2024-01-14 17:38:08 -07:00
cueObjectFeatures {
cueObjectDistance @include(if: $includeCueObjectDistance)
cueObjectAngle @include(if: $includeCueObjectAngle)
cueBallSpeed @include(if: $includeCueBallSpeed)
shotDirection @include(if: $includeShotDirection)
}
pocketingIntentionFeatures {
targetPocketDistance @include(if: $includeTargetPocketDistance)
make @include(if: $includeMake)
intendedPocketType @include(if: $includeIntendedPocketType)
2024-01-08 22:14:21 -07:00
}
}
}
`;