package irmin-graphql

  1. Overview
  2. Docs

Create a GraphQL server with custom GraphQL types.

Parameters

module Config : CONFIG
module Store : Irmin.Generic_key.S with type Schema.Info.t = Config.info
module Types : CUSTOM_TYPES with type path := Store.path and type metadata := Store.metadata and type contents := Store.contents and type hash := Store.hash and type branch := Store.branch and type commit_key := Store.commit_key and type contents_key := Store.contents_key and type node_key := Store.node_key

Signature

module IO = Server.IO
type repo = Store.repo
type server = Server.t
type response_action = [
  1. | `Expert of Cohttp.Response.t * (IO.ic -> IO.oc -> unit Lwt.t)
  2. | `Response of Cohttp.Response.t * Cohttp_lwt.Body.t
]
val schema : repo -> unit Schema.schema
val execute_request : unit Schema.schema -> Cohttp_lwt.Request.t -> Cohttp_lwt.Body.t -> response_action Lwt.t
val v : repo -> server
OCaml

Innovation. Community. Security.