2024-02-05 12:16:58 -07:00
|
|
|
query GetShots(
|
2024-03-30 21:49:29 -06:00
|
|
|
$filterInput: FilterInput!
|
2024-05-20 21:52:38 -06:00
|
|
|
$includeCreatedAt: Boolean! = false
|
|
|
|
$includeUpdatedAt: Boolean! = false
|
|
|
|
$includeCueObjectFeatures: Boolean! = false
|
|
|
|
$includePocketingIntentionFeatures: Boolean! = false
|
2024-02-22 18:36:15 -07:00
|
|
|
$includeCueObjectDistance: Boolean! = false
|
|
|
|
$includeCueObjectAngle: Boolean! = false
|
|
|
|
$includeCueBallSpeed: Boolean! = false
|
|
|
|
$includeShotDirection: Boolean! = false
|
|
|
|
$includeTargetPocketDistance: Boolean! = false
|
|
|
|
$includeMake: Boolean! = false
|
|
|
|
$includeIntendedPocketType: Boolean! = false
|
2024-02-05 12:16:58 -07:00
|
|
|
) {
|
2024-02-22 18:36:15 -07:00
|
|
|
getShots(filterInput: $filterInput) {
|
|
|
|
id
|
|
|
|
videoId
|
|
|
|
startFrame
|
|
|
|
endFrame
|
2024-05-21 14:14:02 -06:00
|
|
|
user {
|
|
|
|
id
|
|
|
|
}
|
2024-05-20 21:52:38 -06:00
|
|
|
createdAt @include(if: $includeCreatedAt)
|
|
|
|
updatedAt @include(if: $includeUpdatedAt)
|
|
|
|
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
2024-02-22 18:36:15 -07:00
|
|
|
cueObjectDistance @include(if: $includeCueObjectDistance)
|
|
|
|
cueObjectAngle @include(if: $includeCueObjectAngle)
|
|
|
|
cueBallSpeed @include(if: $includeCueBallSpeed)
|
|
|
|
shotDirection @include(if: $includeShotDirection)
|
|
|
|
}
|
2024-05-20 21:52:38 -06:00
|
|
|
pocketingIntentionFeatures
|
|
|
|
@include(if: $includePocketingIntentionFeatures) {
|
2024-02-22 18:36:15 -07:00
|
|
|
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
|
|
|
make @include(if: $includeMake)
|
|
|
|
intendedPocketType @include(if: $includeIntendedPocketType)
|
|
|
|
}
|
|
|
|
}
|
2024-02-05 12:16:58 -07:00
|
|
|
}
|