This repository has been archived by the owner on Dec 19, 2023. It is now read-only.
How to add a Http header in Graphql http response? #933
Unanswered
hariraogotit
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Team,
I am using spring boot and I use the following
'com.graphql-java-kickstart:graphql-spring-boot-starter:14.1.0'
'com.graphql-java-kickstart:graphiql-spring-boot-starter:11.1.0'
'com.graphql-java-kickstart:graphql-java-tools:13.0.2'
I am using two resolvers GraphQLMutationResolver and GraphQLQueryResolver. I do have some Filters.
I would like to know how to add a header to the response of Graphql
eg httpResponse.addHeader("traceId", "A random generated UUID")
I tried adding in some of the filters but I dont see in the response of graphqlTestTemplate. Any leads are much appreciated.
I am new to graphql world. So kindly excuse me if my question is basic.
Thanks
Hari
Beta Was this translation helpful? Give feedback.
All reactions