graphql-cohttp

Run GraphQL servers with `cohttp`
Library graphql-cohttp
Module Graphql_cohttp . Make

Parameters

module Body : HttpBody with type +'a io := 'a Schema.Io.t

Signature

type 'conn callback = 'conn -> Cohttp.Request.t -> Body.t -> (Cohttp.Response.t * Body.t) Schema.Io.t
val execute_request : 'ctx Schema.schema -> 'ctx -> Cohttp.Request.t -> Body.t -> (Cohttp.Response.t * Body.t) Schema.Io.t
val make_callback : ( Cohttp.Request.t -> 'ctx ) -> 'ctx Schema.schema -> 'conn callback