0
我需要根据请求将servlet属性值传递给Query对象。我有这么多的工作,但我怎样才能从qt变量中获得真正的查询对象?如何将ServletRequest传递给在graphql-java中执行I/O的pojo
public void service(ServletRequest req, ServletResponse res) throws ServletException, IOException {
GraphQLSchema schema = getSchemaProvider().getSchema();
//schema.transform(c -> {});
GraphQLObjectType t = schema.getQueryType();
String rootLib = (String) req.getAttribute("ROOTLIB");
super.service(req, res);
}