interface GraphQLPaginationResponseHandler
Defines how a pagination response is defined and built
Type Params | Return Type | Name and description |
---|---|---|
|
abstract java.lang.Object |
createResponse(graphql.schema.DataFetchingEnvironment environment, PaginationResult result) Create the response data to be sent to the client |
|
abstract int |
getDefaultMax()
|
|
abstract int |
getDefaultOffset()
|
|
abstract java.lang.String |
getDescription(org.grails.datastore.mapping.model.PersistentEntity entity)
|
|
abstract java.util.List<graphql.schema.GraphQLFieldDefinition> |
getFields(graphql.schema.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