Unable to access DgsContext through DataFetchingEnvironment #1324
Unanswered
swapnildey94
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
Uh oh!
There was an error while loading. Please reload this page.
-
Hi All - I'm trying to access DgsContext through DataFetchingEnvironment but, I'm unable to import the DgsContext class in Java 11 SpringBoot project. I'm able to read graphQL context from DFE within which I'm able to view the DgsContext inside the concurrent hash map - but when I try to access it using getOrEmpty() method - I get Optional.empty() back. Similarly, I'm unable to access many such kotlin classes within the Java project e.g., context builder etc. What am I missing?
I'm using 5.4.3 dgs framework with Spring Boot 2.7.5 and kotlin-stdlib at 1.7.21.
Beta Was this translation helpful? Give feedback.
All reactions