-
Notifications
You must be signed in to change notification settings - Fork 310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: added middleware support #170
Conversation
Hi, |
I am looking for a feature that exactly does this, is there a reason why it is not looked into for more than an year. It would be good to get this in unless there is an alternative solution available |
New PRs welcome if this one has stalled |
Thanks @jasonkuhrt, @avsokolov Do you want to rebase your branch from master so that we can get this reviewed and get it merged. If you don't find time then I am happy to create a new PR |
@suds-sky Anyway we could get this merged in? I wanted to send logs to APM (elastic) when we get errors and the only way to do that is to wrap graphql-request. This is going to be really fragile and I would love to do it as middleware instead.
|
@suds-sky probably a new PR |
Was there something wrong with this PR that it never got merged? |
@AshotN The author became unresponsive. I never looked closely at the PR. |
Sorry, I forgot about the merge request. But anyway it's still actual for me. @jasonkuhrt What should I do to actualize and merge it? |
@avsokolov Thanks for checking in. I'll take a look some time next week hopefully now that I know you're still active. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add some docs, otherwise LGTM
449d322
to
76abc28
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, just one doc typo.
@jasonkuhrt I have rebased to the latest master and added docs. Please review it |
Co-authored-by: Jason Kuhrt <jasonkuhrt@me.com>
Add the ability to provide simple client middleware for common request and response handling. It can be useful for logging, requests tracing, errors handling etc. when used singe client in a large app.