Register fragment

This commit is contained in:
2024-01-08 22:31:08 -07:00
parent fcdce8706f
commit 5204599a08
4 changed files with 29 additions and 14 deletions

View File

@@ -1,10 +0,0 @@
import { gql } from "@apollo/client";
const SHOT_FEATURES_FRAGMENT = gql`
fragment ShotFeatures on ShotFeaturesGQL {
cueObjectAngle @include(if: $includeCueObjectAngle)
cueObjectDistance @include(if: $includeCueObjectDistance)
}
`;
export default SHOT_FEATURES_FRAGMENT;

13
graphql/fragment/shot.ts Normal file
View File

@@ -0,0 +1,13 @@
import { gql } from "@apollo/client";
export const SHOT_FEATURES_FRAGMENT = gql`
fragment ShotFeatures on ShotFeaturesGQL {
cueObjectDistance @include(if: $includeCueObjectDistance)
targetPocketDistance @include(if: $includeTargetPocketDistance)
cueObjectAngle @include(if: $includeCueObjectAngle)
cueBallSpeed @include(if: $includeCueBallSpeed)
intendedPocket @include(if: $includeIntendedPocket)
shotDirection @include(if: $includeShotDirection)
didMake @include(if: $includeDidMake)
}
`;