@Target(value=PARAMETER) @Retention(value=RUNTIME) @Documented public @interface ContextValue
DataFetchingEnvironment.getLocalContext()
-- if it is an
instance of GraphQLContext
.
DataFetchingEnvironment.getGraphQlContext()
public abstract boolean required
Defaults to "true", leading to an exception thrown if the value is
missing. Switch to "false" if you prefer null
if the value is
not present, or use Optional
.