diff --git a/packages/hoppscotch-backend/src/types/input-types.args.ts b/packages/hoppscotch-backend/src/types/input-types.args.ts new file mode 100644 index 000000000..fea176ae0 --- /dev/null +++ b/packages/hoppscotch-backend/src/types/input-types.args.ts @@ -0,0 +1,19 @@ +import { ArgsType, Field, InputType } from '@nestjs/graphql'; + +@ArgsType() +@InputType() +export class PaginationArgs { + @Field({ + nullable: true, + defaultValue: undefined, + description: 'Cursor for pagination, ID of the last item in the list', + }) + cursor: string; + + @Field({ + nullable: true, + defaultValue: 10, + description: 'Number of items to fetch', + }) + take: number; +}