import { Field } from '@nestjs/graphql'; import { InputType } from '@nestjs/graphql'; import { Decimal } from '@prisma/client/runtime'; import { GraphQLDecimal } from 'prisma-graphql-type-decimal'; import { transformToDecimal } from 'prisma-graphql-type-decimal'; import { Transform } from 'class-transformer'; import { Type } from 'class-transformer'; @InputType() export class NullableDecimalFieldUpdateOperationsInput { @Field(() => GraphQLDecimal, {nullable:true}) @Type(() => Object) @Transform(transformToDecimal) set?: Decimal; @Field(() => GraphQLDecimal, {nullable:true}) @Type(() => Object) @Transform(transformToDecimal) increment?: Decimal; @Field(() => GraphQLDecimal, {nullable:true}) @Type(() => Object) @Transform(transformToDecimal) decrement?: Decimal; @Field(() => GraphQLDecimal, {nullable:true}) @Type(() => Object) @Transform(transformToDecimal) multiply?: Decimal; @Field(() => GraphQLDecimal, {nullable:true}) @Type(() => Object) @Transform(transformToDecimal) divide?: Decimal; }