import { Field, ID, InputType, ObjectType } from 'type-graphql'; import { AggregateProductVariant } from '@/entities'; import { createConnectionType } from '../shared/pagination'; @ObjectType({ description: 'The connection type for AggregateProductVariant.', }) export class AggregateProductVariantConnection extends createConnectionType( 'AggregateProductVariant', AggregateProductVariant ) {} @ObjectType({ description: 'Return type for the aggregateProductVariant query.', }) export class AggregateProductVariantPayload { @Field(() => AggregateProductVariant, { nullable: false, description: 'The aggregate product variant.', }) aggregateProductVariant!: AggregateProductVariant; } @InputType({ description: 'Input type for the aggregateProductVariant query.', }) export class AggregateProductVariantInput { @Field(() => ID, { nullable: false, description: 'The ID of the aggregate product variant.', }) id!: string; } export const DEFAULT_AGGREGATE_PRODUCT_INPUT = {};