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
Hi, I'm trying to populate the localContext inside the graphql.ExecutionInput instance to provide some security context before each web request. Ideally I would have access to the HttpServletRequest so I can recreate the security context and pass it on inside the localContext.
Then I'll be able to retrieve it from the DataFetchingEnvironment inside my DataFetchers.
Does anybody know how to achieve that?
I'm looking around the GraphQLInvocationInput but it seems the GraphQLSingleInvocationInput doesn't support it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm trying to populate the
localContext
inside thegraphql.ExecutionInput
instance to provide some security context before each web request. Ideally I would have access to theHttpServletRequest
so I can recreate the security context and pass it on inside thelocalContext
.Then I'll be able to retrieve it from the
DataFetchingEnvironment
inside myDataFetcher
s.Does anybody know how to achieve that?
I'm looking around the
GraphQLInvocationInput
but it seems theGraphQLSingleInvocationInput
doesn't support it.Beta Was this translation helpful? Give feedback.
All reactions