Convert the type of data node from String to JsonObject

This commit is contained in:
hanahmily 2018-02-02 17:09:36 +08:00
parent c70b132467
commit cff4871975
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {