jmfayard
02/17/2022, 9:25 AMCookie
header using my framework of choice (ktor).
I understand how I can read Cookies and header before the GraphQL request with.GraphQLContextFactory
but is it possible to set Cookie
header after my GraphQL mutation succeeds?
I would have expected this in environment: DataFetchingEnvironmen
but no luck.Joe
02/17/2022, 3:23 PMNewCookie
instance into the graphQLContext
map and setting it on the response. Something similar should be doable in a ktor based server. https://github.com/trib3/leakycauldron/blob/main/graphql/src/main/kotlin/com/trib3/graphql/resources/GraphQLResource.kt#L154-L158