diff --git a/.ocamlformat b/.ocamlformat index f949767..5d6f202 100644 --- a/.ocamlformat +++ b/.ocamlformat @@ -1 +1,2 @@ +version = 0.26.2 profile = conventional diff --git a/dune-project b/dune-project index ee5bc61..652565a 100644 --- a/dune-project +++ b/dune-project @@ -3,5 +3,3 @@ (name ocaml-graphql-server) (using menhir 2.0) - -(using fmt 1.2) diff --git a/graphql-async.opam b/graphql-async.opam index 88d52c9..7c41436 100644 --- a/graphql-async.opam +++ b/graphql-async.opam @@ -5,6 +5,7 @@ homepage: "https://github.com/andreas/ocaml-graphql-server" doc: "https://andreas.github.io/ocaml-graphql-server/" bug-reports: "https://github.com/andreas/ocaml-graphql-server/issues" dev-repo: "git+https://github.com/andreas/ocaml-graphql-server.git" +license: "MIT" build: [ ["dune" "build" "-p" name "-j" jobs] @@ -19,6 +20,7 @@ depends: [ "alcotest" {with-test} "async_unix" {with-test & >= "v0.9.0"} "yojson" {with-test & >= "1.6.0"} + "ppx_sexp_conv" {>= "v0.16.0"} ] synopsis: "Build GraphQL schemas with Async support" diff --git a/graphql-async/src/graphql_async.ml b/graphql-async/src/graphql_async.ml index 9b50535..2c32a7e 100644 --- a/graphql-async/src/graphql_async.ml +++ b/graphql-async/src/graphql_async.ml @@ -10,10 +10,9 @@ module Schema = let map t f = Async_kernel.Pipe.map' t ~f:(fun q -> - Async_kernel.Deferred.Queue.map q ~f) + Async_kernel.Deferred.Queue.map q ~f ~how:`Sequential) let iter t f = Async_kernel.Pipe.iter t ~f - let close = Async_kernel.Pipe.close_read end end) @@ -21,6 +20,5 @@ module Schema = type t = string let message_of_field_error t = t - let extensions_of_field_error _t = None end) diff --git a/graphql-cohttp.opam b/graphql-cohttp.opam index d9a839b..1c03232 100644 --- a/graphql-cohttp.opam +++ b/graphql-cohttp.opam @@ -5,6 +5,7 @@ homepage: "https://github.com/andreas/ocaml-graphql-server" doc: "https://andreas.github.io/ocaml-graphql-server/" bug-reports: "https://github.com/andreas/ocaml-graphql-server/issues" dev-repo: "git+https://github.com/andreas/ocaml-graphql-server.git" +license: "MIT" build: [ ["dune" "build" "-p" name "-j" jobs] diff --git a/graphql-cohttp/src/assets/index.html b/graphql-cohttp/src/assets/index.html index 5493e67..6326770 100644 --- a/graphql-cohttp/src/assets/index.html +++ b/graphql-cohttp/src/assets/index.html @@ -1,122 +1,117 @@ - - - +
+ + + + +