← All repos

ocaml-graphql-server

GraphQL servers in OCaml

graphqlocaml
Browse cluster: OCaml Systems and Utilities
302commits
28contributors
4languages

Tech stack & purpose

This library enables developers to build GraphQL servers in OCaml with type-safe schema design. It includes a GraphQL parser written in pure OCaml using Menhir, supports query execution with introspection, field arguments, and query variables. The project is built around several OPAM packages—`graphql` for core IO-agnostic functionality, `graphql-lwt` and `graphql-async` for concurrent I/O support via Lwt and Async respectively, `graphql_parser` for query parsing, and `graphql-cohttp` for exposing schemas over HTTP using Cohttp. The library is authored by Andreas (based on the GitHub handle) and emphasizes type safety such that valid schemas guarantee agreement between field types, resolver signatures, and context arguments across the entire schema.

Community & reference links

Languages

OCaml
97.9%
HTML
1.9%
Makefile
0.1%
Standard ML
0.1%

Contributors