Andres
01/13/2023, 2:00 PMNahuel Ourthe
01/13/2023, 2:50 PMfun Application.configureGraphQL() {
install(GraphQL) {
playground = true
context { call ->
val headers = call.request.headers
inject(headers)
}
configureSchema()
}
}
In that example I put all the headers in the context... So I can get it with:
ctx.get(Headers::class)
Andres
01/13/2023, 4:06 PMAndres
01/13/2023, 7:34 PM