Package org.springframework.graphql.data.pagination
@NonNullApi
@NonNullFields
package org.springframework.graphql.data.pagination
Core contracts and generic infrastructure classes for pagination.
-
ClassDescriptionContract to adapt a container object for a window of elements from a larger result set to
Connection.Convenient base class for implementations ofConnectionAdapter.GraphQLTypeVisitorthat looks forConnectionfields in the schema, and decorates their registeredDataFetcherin order to adapt return values toConnection.Strategy to encode and decode a String cursor to make it opaque for clients.Strategy to convert an Object that represents the position of an item within a paginated result set to and from a String cursor.Decorator for aCursorStrategythat applies aCursorEncoderto the cursor String to make it opaque for external use.Subrange<P>Container for parameters that limit result elements to a subrange including a relative position, number of elements, and direction.