Package gql.ratpack

Class GraphQLHandler

  • All Implemented Interfaces:
    ratpack.handling.Handler

    public class GraphQLHandler
    extends Object
    implements ratpack.handling.Handler
    GraphQL endpoint. This handler will be exposing a given GraphQL schema engine. It expects both query and variables to be sent as JSON. Then it will parse it and handle it as a map
    Since:
    0.2.0
    • Constructor Detail

      • GraphQLHandler

        public GraphQLHandler()
    • Method Detail

      • handle

        public void handle​(ratpack.handling.Context ctx)
                    throws Exception
        Specified by:
        handle in interface ratpack.handling.Handler
        Throws:
        Exception