Skip to content

Commit

Permalink
LRCI-4191 Don't always add a space. This is just like how we do JSON.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianchandotcom committed May 30, 2024
1 parent c5f9d85 commit 03c8952
Showing 1 changed file with 4 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -283,8 +283,8 @@ protected List<JSONObject> requestGraphQL(

StringBuilder sb = new StringBuilder();

sb.append("{ ");
sb.append("c { ");
sb.append("{");
sb.append("c {");

sb.append(entityName);
sb.append(" (page: ");
Expand All @@ -298,22 +298,14 @@ protected List<JSONObject> requestGraphQL(
sb.append("\"");
}

sb.append(") { ");

sb.append("items { ");
sb.append(") {items {");

for (String entityField : entityFields) {
sb.append(entityField);
sb.append(" ");
}

sb.append("} ");
sb.append("page ");
sb.append("pageSize ");
sb.append("lastPage ");
sb.append("} ");
sb.append("} ");
sb.append("}");
sb.append("} page pageSize lastPage}}}");

JSONObject requestJSONObject = new JSONObject();

Expand Down

0 comments on commit 03c8952

Please sign in to comment.