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
I'm making some kind of auth related stuffs. I want to check that the session exists in some queries, however I can't find any related feature that can implement this.
In Express(or Koa/Connect), I can do that with middleware, and I can check the session exists and when it is empty, response as unauthorized request before actual query.
In here, Apollo-Server, middleware is totally different thing, it seems more like "adaptor" or "plugin" stuff that can works with other types of HTTP server.
I don't care what you are calls it, however I just want to process before actual response. How do I execute the function before each query or mutation? Also in that function, is it possible to access "koa context" which session located?
The text was updated successfully, but these errors were encountered:
Hello, thanks for making great stuff.
I'm making some kind of auth related stuffs. I want to check that the session exists in some queries, however I can't find any related feature that can implement this.
In Express(or Koa/Connect), I can do that with middleware, and I can check the session exists and when it is empty, response as unauthorized request before actual query.
In here, Apollo-Server, middleware is totally different thing, it seems more like "adaptor" or "plugin" stuff that can works with other types of HTTP server.
I don't care what you are calls it, however I just want to process before actual response. How do I execute the function before each query or mutation? Also in that function, is it possible to access "koa context" which session located?
The text was updated successfully, but these errors were encountered: