Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
HBE-155 Common input-args for Pagination (#19)
Mir Arif Hasan24dd535d9eea
diff --git a/packages/hoppscotch-backend/src/types/input-types.args.ts b/packages/hoppscotch-backend/src/types/input-types.args.tsnew file mode 100644index 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;+}