package irmin-graphql

  1. Overview
  2. Docs
module Schema = Graphql_lwt.Schema
module type S = sig ... end

GraphQL server

module type CONFIG = sig ... end

GraphQL server config

module type CUSTOM_TYPE = sig ... end

Custom GraphQL schema type and argument type for type t.

module type CUSTOM_TYPES = sig ... end

GraphQL types for Irmin concepts (key, metadata, contents, hash and branch).

module Default_types (S : Irmin.S) : CUSTOM_TYPES with type key := S.key and type metadata := S.metadata and type contents := S.contents and type hash := S.hash and type branch := S.branch

Default GraphQL types for the Irmin store S.

module Make (Server : Cohttp_lwt.S.Server) (Config : CONFIG) (Store : Irmin.S) : S with type repo = Store.repo and type server = Server.t

Create a GraphQL server with default GraphQL types for S.

module Make_ext (Server : Cohttp_lwt.S.Server) (Config : CONFIG) (Store : Irmin.S) (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) : S with type repo = Store.repo and type server = Server.t

Create a GraphQL server with custom GraphQL types.

OCaml

Innovation. Community. Security.