Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,22 @@ export interface EntityLoaderForwardUnifiedPaginationArgs<
*/
first: number;

/**
* The number of entities to return starting from the entity before the cursor. Must be a positive integer.
* Not allowed with forward pagination.
*/
last?: never;

/**
* The cursor to paginate after for forward pagination.
*/
after?: string;

/**
* The cursor to paginate before for backward pagination.
* Not allowed with forward pagination.
*/
before?: never;
}

/**
Expand All @@ -273,11 +285,23 @@ export interface EntityLoaderBackwardUnifiedPaginationArgs<
TFields extends Record<string, any>,
TSelectedFields extends keyof TFields = keyof TFields,
> extends EntityLoaderBaseUnifiedPaginationArgs<TFields, TSelectedFields> {
/**
* The number of entities to return starting from the entity after the cursor. Must be a positive integer.
* Not allowed with backward pagination.
*/
first?: never;

/**
* The number of entities to return starting from the entity before the cursor. Must be a positive integer.
*/
last: number;

/**
* The cursor to paginate after for forward pagination.
* Not allowed with backward pagination.
*/
after?: never;

/**
* The cursor to paginate before for backward pagination.
*/
Expand Down