Skip to content

Commit

Permalink
fix variables always empty bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatsuya Niwa authored and kaqqao committed Jan 25, 2020
1 parent 59c28ac commit 32dc14d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public Object executeJsonPost(@RequestBody GraphQLRequest requestBody,
R request) {
String query = requestParams.getQuery() == null ? requestBody.getQuery() : requestParams.getQuery();
String operationName = requestParams.getOperationName() == null ? requestBody.getOperationName() : requestParams.getOperationName();
Map<String, Object> variables = requestParams.getVariables() == null ? requestBody.getVariables() : requestParams.getVariables();
Map<String, Object> variables = requestParams.getVariables().isEmpty() ? requestBody.getVariables() : requestParams.getVariables();

return executor.execute(graphQL, new GraphQLRequest(query, operationName, variables), request);
}
Expand Down

0 comments on commit 32dc14d

Please sign in to comment.