There was an error while loading. Please reload this page.
2 parents 2989d36 + 49deba8 commit 0f08bf8Copy full SHA for 0f08bf8
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