graphql

husayn 2020-03-29T04:27:47.012200Z

Hello …I am using https://github.com/walmartlabs/lacinia-pedestal … I am trying to set cookies/headers as part of a response to a resolver … has anyone done this before ?

2020-03-29T07:19:10.013800Z

You can resolve with context, set it in the context and then use an interceptor to read it from the context and set the headers in the leave phase

husayn 2020-03-29T13:03:04.015600Z

@oliy that was what I tried first, but it seems that new context is set only for resolvers below, it is not available on interceptors on its way out

husayn 2020-03-29T13:04:11.016400Z

I ended up using with-extensions and set the header on an interceptor’s leave