Files
twenty_crm/packages/twenty-server/src/utils/pagination/interfaces/connection-arguments.interface.ts
2023-12-10 18:10:54 +01:00

16 lines
487 B
TypeScript

export interface IConnectionArguments {
first?: number | null;
after?: string | null;
last?: number | null;
before?: string | null;
}
export type ConnectionArgumentsUnion =
| ForwardPaginationArguments
| BackwardPaginationArguments
| NoPaginationArguments;
export type ForwardPaginationArguments = { first: number; after?: string };
export type BackwardPaginationArguments = { last: number; before?: string };
export type NoPaginationArguments = Record<string, unknown>;