package irmin-graphql

  1. Overview
  2. Docs

Create a GraphQL server with custom GraphQL types.

Parameters

module Config : CONFIG
module Store : Irmin.S
module Types : CUSTOM_TYPES with type key := Store.key and type metadata := Store.metadata and type contents := Store.contents and type hash := Store.hash and type branch := Store.branch

Signature

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 v : repo -> server
OCaml

Innovation. Community. Security.