Generalize graphql-cohttp to support other backends#190
Generalize graphql-cohttp to support other backends#190tmattio wants to merge 2 commits intoandreas:masterfrom
Conversation
|
Hi @tmattio! Thanks for this 😄 I always intended to support About the approach. I would prefer keeping
If |
|
Oh! I saw Having About the proliferation of packages, maybe it makes sense to provide packages for popular servers ( I could still use |
|
I'm cleaning up my open PRs and this doesn't seem relevant anymore, so closing now 🙂 |
Hi!
I wanted to use ocaml-graphql-server with opium (the Httpaf version), so I generalized the implementation of graphql-cohttp to support other request and response types.
The goal is to make it easy to create a GraphQL server with any framework (httpaf, opium, re-web, etc.)
The current implementation lacks support for subscriptions, but I wanted to know if you were interested in the contribution before I continue: I'll finish it if you are 🙂
A few changes I made also:
"/graphql"). I think it makes sense to let the user handle the routing.HttpResponse.t, instead ofin
graphql-cohttp. So the user will have to wrap to callback with a bit of custom code when usingcohttp.