Skip to content

The open alternative to Salesforce, designed for AI.

380 B
Raw Blame
import { Field, ObjectType } from '@nestjs/graphql';

import { LineChartDataPointDTO } from 'src/modules/dashboard/chart-data/dtos/line-chart-data-point.dto';

@ObjectType('LineChartSeries')
export class LineChartSeriesDTO {
  @Field(() => String)
  key: string;

  @Field(() => String)
  label: string;

  @Field(() => [LineChartDataPointDTO])
  data: LineChartDataPointDTO[];
}