diff --git a/.gitattributes b/.gitattributes old mode 100644 new mode 100755 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md old mode 100644 new mode 100755 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/UPGRADING.md b/UPGRADING.md old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 diff --git a/phpunit.xml b/phpunit.xml old mode 100644 new mode 100755 diff --git a/src/OhMyBrew/BasicShopifyAPI.php b/src/OhMyBrew/BasicShopifyAPI.php old mode 100644 new mode 100755 index 33955de..747f2cf --- a/src/OhMyBrew/BasicShopifyAPI.php +++ b/src/OhMyBrew/BasicShopifyAPI.php @@ -532,7 +532,7 @@ public function graph(string $query, array $variables = []) // Return Guzzle response and JSON-decoded body return (object) [ 'response' => $response, - 'body' => property_exists($body, 'data') ? $body->data : $body->errors, + 'body' => property_exists($body, 'errors') ? $body->errors : $body->data, 'errors' => property_exists($body, 'errors'), 'timestamps' => [$tmpTimestamp, $this->requestTimestamp], ]; diff --git a/test/BaseApiTest.php b/test/BaseApiTest.php old mode 100644 new mode 100755 diff --git a/test/GraphApiTest.php b/test/GraphApiTest.php old mode 100644 new mode 100755 diff --git a/test/RestApiTest.php b/test/RestApiTest.php old mode 100644 new mode 100755 diff --git a/test/fixtures/admin__oauth__access_token.json b/test/fixtures/admin__oauth__access_token.json old mode 100644 new mode 100755 diff --git a/test/fixtures/graphql/create_collection.json b/test/fixtures/graphql/create_collection.json old mode 100644 new mode 100755 diff --git a/test/fixtures/graphql/shop_products.json b/test/fixtures/graphql/shop_products.json old mode 100644 new mode 100755 diff --git a/test/fixtures/graphql/shop_products_error.json b/test/fixtures/graphql/shop_products_error.json old mode 100644 new mode 100755 diff --git a/test/fixtures/rest/admin__shop.json b/test/fixtures/rest/admin__shop.json old mode 100644 new mode 100755