import { GraphQLJSONObject } from 'graphql-type-json'; import { Field, Int, InputType, ObjectType } from '@nestjs/graphql'; @InputType() export class ListArguments { @Field(() => GraphQLJSONObject, { nullable: true }) filters?: any; @Field(() => GraphQLJSONObject, { nullable: true }) sort?: any; @Field(() => Int, { defaultValue: 0 }) skip: number; @Field(() => Int, { defaultValue: 10 }) limit: number; }