T - the entity type that is paginatedpublic class PaginatedDataConnectionFetcher<T> extends java.lang.Object implements ConnectionFetcher<T>
GraphQLConnection to do a real pagination,
i.e you fetch each time the relevant data, you make the cursors and
you decide if there are previous or next pages
Note: If you are using the connection, the return type of the associated dataFetcher must implement PaginatedData
| Constructor and Description |
|---|
PaginatedDataConnectionFetcher(graphql.schema.DataFetcher<PaginatedData<T>> paginationDataFetcher) |
| Modifier and Type | Method and Description |
|---|---|
graphql.relay.Connection<T> |
get(graphql.schema.DataFetchingEnvironment environment) |
public PaginatedDataConnectionFetcher(graphql.schema.DataFetcher<PaginatedData<T>> paginationDataFetcher)