import { Field, ID, InputType, ObjectType } from 'type-graphql'; import { RetailerProduct } from '@/entities'; import { createConnectionType } from '../shared/pagination'; @ObjectType({ description: 'The connection type for RetailerProduct.', }) export class RetailerProductConnection extends createConnectionType( 'RetailerProduct', RetailerProduct ) {} @ObjectType({ description: 'Return type for the retailerProduct query.', }) export class RetailerProductPayload { @Field(() => RetailerProduct, { nullable: false, description: 'The retailer product.', }) retailerProduct!: RetailerProduct; } @InputType({ description: 'Input type for the retailerProduct query.', }) export class RetailerProductInput { @Field(() => ID, { nullable: true, description: 'The ID of the retailer product.', }) id?: string; } export const DEFAULT_RETAILER_PRODUCT_INPUT = {};