Register fragment
This commit is contained in:
@@ -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
13
graphql/fragment/shot.ts
Normal 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)
|
||||
}
|
||||
`;
|
Reference in New Issue
Block a user