There was an error while loading. Please reload this page.
1 parent 2989d36 commit 49deba8Copy full SHA for 49deba8
lib/HttpRequestGraphQL.php
@@ -49,6 +49,8 @@ protected static function prepareRequest($httpHeaders = array(), $data = array()
49
50
if (is_array($variables)) {
51
self::$postDataGraphQL = json_encode(['query' => $data, 'variables' => $variables]);
52
+ } else {
53
+ self::$postDataGraphQL = json_encode(['query' => $data]);
54
}
55
56
0 commit comments