https://github.com/graphql-java-kickstart/graphql-java-servlet#context-and-dataloader-settings Now with the updated version GraphqlContext is an interface.