Defines how a pagination response is defined and built
Type Params | Return Type | Name and description |
---|---|---|
|
java.lang.Object |
createResponse(DataFetchingEnvironment environment, PaginationResult result) Create the response data to be sent to the client |
|
int |
getDefaultMax() @return The default maximum value if none provided |
|
int |
getDefaultOffset() @return The default offset value if none provided |
|
java.lang.String |
getDescription(PersistentEntity entity) @return The description to use in the schema, or null |
|
java.util.List<GraphQLFieldDefinition> |
getFields(GraphQLOutputType resultsType, GraphQLTypeManager typeManager) Creates the fields to be used in the schema object for a pagination response |
Create the response data to be sent to the client
environment
- The data fetching environmentresults
- The data retrieved from the query
Creates the fields to be used in the schema object for a pagination response
resultsType
- The graphql type of the resultstypeManager
- The type manager