Convert the type of data node from String to JsonObject
This commit is contained in:
parent
c70b132467
commit
cff4871975
|
|
@ -118,7 +118,7 @@ public class GraphQLHandler extends JettyHandler {
|
|||
|
||||
JsonObject jsonObject = new JsonObject();
|
||||
if (data != null) {
|
||||
jsonObject.addProperty(DATA, data.toString());
|
||||
jsonObject.add(DATA, gson.fromJson(gson.toJson(data), JsonObject.class));
|
||||
}
|
||||
|
||||
if (CollectionUtils.isNotEmpty(errors)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue