ocaml-graphql-server icon indicating copy to clipboard operation
ocaml-graphql-server copied to clipboard

Extensions + middleware

Open sgrove opened this issue 8 years ago • 0 comments

Similar to https://github.com/sangria-graphql/sangria/issues/256 and related to #58 , we'd like to have a way to have middleware that'll take care of some cross-cutting concerns and then store their results in the extensions field of the GraphQL response, so that other network layers (proxies, cacheing, instrumentation, etc.) can transparently work with our GraphQL responses.

sgrove avatar Jul 20 '17 19:07 sgrove