public class InvestRootContext extends Object
You may access this through SPQR using an argument annotationed with GraphQLRootContext.
We found this approach necessary because of the disjoint between Spring Mono/FLux reouter functions and the execution environment of GraphQL (which is threaded even though we often return a flux or mono).
As such the Spring session and authentication information is not available as method annotations within GraphQL functions. Thus the most pragmatic approach is to use the root context to hold this information. It is setup at the start of the GraphQL execution.
Copyright © 2017–2018 Committed. All rights reserved.