You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.
Hello! First of all, thank you for this project - it's great!
Secondly, I think #113 is one solution to my problem, but I'm hoping there's another in the mean time...
I've written my app using free monad machinery with my own little DSL. So, for a route that is meant to return a String, the route actually produces a Free[DB, String]. What I'd like to do is be able to set some global middleware just before the stage that says "the types don't match up" that can run the route's output through an interpreter to get out what's needed (most likely a Promise[GraphQLError, String]).
tl;dr: can middleware be placed after execution of a resolver and before validation?
Thanks in advance :)
The text was updated successfully, but these errors were encountered:
At the moment, I don't think there's a way to do this, short of forking the project. I think, like you say, that #113 will be the eventual answer, so I'm going to close this one as a duplicate. Thanks for your question!
Hello! First of all, thank you for this project - it's great!
Secondly, I think #113 is one solution to my problem, but I'm hoping there's another in the mean time...
I've written my app using free monad machinery with my own little DSL. So, for a route that is meant to return a
String
, the route actually produces aFree[DB, String]
. What I'd like to do is be able to set some global middleware just before the stage that says "the types don't match up" that can run the route's output through an interpreter to get out what's needed (most likely aPromise[GraphQLError, String]
).tl;dr: can middleware be placed after execution of a resolver and before validation?
Thanks in advance :)
The text was updated successfully, but these errors were encountered: