OffsetLimit

Result of converting ConnectionArguments to an offset/limit pair.

This is the bridge between GraphQL pagination arguments (first, after, last, before) and the offset-based slice that a backend query requires. Produced by toOffsetLimit and consumed by internally.

Java equivalent of Kotlin's viaduct.api.types.OffsetLimit.

Parameters

offset

index of the first item to fetch; a negative value signals fromList to resolve from the tail of the dataset (e.g. -1 is the last item, -10 means the 10th from the end)

limit

maximum number of items to fetch

Constructors

Link copied to clipboard
constructor()