Skip to main content
Version: 7.x.x


The GraphQLRequestHandler is an open and extendable class that contains the basic logic to get a GraphQLResponse.

It requires a GraphQLSchema and a KotlinDataLoaderRegistryFactory in the constructor. For each request, it accepts a GraphQLRequest and an optional GraphQLContext, and calls the KotlinDataLoaderRegistryFactory to generate a new KotlinDataLoaderRegistry. Then all of these objects are sent to the schema for execution and the result is mapped to a GraphQLResponse.

There shouldn't be much need to change this class but if you wanted to add custom logic or logging it is possible to override it or just create your own.