Do not return target metrics as list

This commit is contained in:
Kat Huang 2024-03-14 14:39:11 -06:00
parent 43c1f7be09
commit 27114615a5
2 changed files with 4 additions and 4 deletions

View File

@ -42,7 +42,7 @@ export type AggregateInputGql = {
export type AggregateResultGql = {
__typename?: "AggregateResultGQL";
featureBuckets: Array<BucketGql>;
targetMetrics: Array<TargetMetricGql>;
targetMetrics: TargetMetricGql;
};
export type AndFilter = {
@ -453,7 +453,7 @@ export type GetAggregatedShotMetricsQuery = {
rangeKey: string;
lowerBound: number;
}>;
targetMetrics: Array<{
targetMetrics: {
__typename?: "TargetMetricGQL";
count?: number | null;
makePercentage?: number | null;
@ -463,7 +463,7 @@ export type GetAggregatedShotMetricsQuery = {
average?: number | null;
median?: number | null;
} | null;
}>;
};
}>;
};

View File

@ -16,7 +16,7 @@ type Query {
type AggregateResultGQL {
featureBuckets: [BucketGQL!]!
targetMetrics: [TargetMetricGQL!]!
targetMetrics: TargetMetricGQL!
}
type BucketGQL {