ocaml-graphql-server
ocaml-graphql-server copied to clipboard
GraphQL servers in OCaml
platform: windows 10 Dune: version 2.1.2 Cygwin: CYGWIN_NT-10.0 YSG4206 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin ``` $ git clone https://github.com/andreas/ocaml-graphql-server.git $ cd ocaml-graphql-server $ dune exec examples/server.exe ocaml-crunch graphql-cohttp/src/assets.ml (exit 1)...
Hi, When the client is on a different origin than the server, the client sends a preflight OPTIONS request to OGS, which returns a 404: https://github.com/andreas/ocaml-graphql-server/blob/940e86f9ff1a017be2ff64b3a35c71804d9a4729/graphql-cohttp/src/graphql_cohttp.ml#L188 That prevents directly using...
This solves a problem we saw at OneGraph when upgrading to the latest version of ocaml-graphql-server. Our query times increased by ~60ms on every query after upgrading. We tracked down...
Ocamlformat has been added to the project via #177. I'm opening up this issue to track the fact that we still need to add a CI check for it. I...
Is there some way to distinguish between the user passing in null and the user passing in nothing for an arg? I have a use case for an update mutation...
Queries with differing arguments for the same field should not be allowed. An example of a query that should fail ([see swapi example](https://graphql.org/swapi-graphql/?query=query%20AllFilms%20%7B%0A%20%20allFilms(first%3A%201)%20%7B%0A%20%20%20%20totalCount%0A%20%20%7D%0A%20%20allFilms(first%3A%202)%20%7B%0A%20%20%20%20pageInfo%20%7B%0A%20%20%20%20%20%20hasNextPage%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D&operationName=AllFilms)) ``` query AllFilms { allFilms(first: 1) {...
We're working on a feature for OneGraph that allows users to query data across multiple accounts for the same provider in a single GraphQL query. For example, with our Gmail...
Since `abstract_field` can receive a `~doc` argument, would it be possible to provide that as a default for each implementation in the introspection query? This would be helpful to avoid...
I have a schema similar to: ```reason let card: Schema.abstract_typ(unit, [ | `Pet]) = Schema.( interface( "Pet", ~doc="Interface which all pets must conform to", ~fields=_typ => [ abstract_field( "id", ~typ=non_null(string),...
This is probably a bit random, but I replaced `Fmt` with the standard `Format` module. One less dependency, plus if you like `printf` you might find this more readable. I...