evyos-frontend-development/backend/src/dto/list.input.ts

19 lines
448 B
TypeScript

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;
}