diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 0669c1e02a..6338dd9b81 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -178,7 +178,7 @@ function executeRequest( */ function parseGraphql(Request $request): array { - return [ 'query' => $request->getSwoole()->rawContent() ]; + return [ 'query' => $request->getRawContent() ]; } /** diff --git a/src/Appwrite/Utopia/Request.php b/src/Appwrite/Utopia/Request.php index c5a916bed6..275f998ce5 100644 --- a/src/Appwrite/Utopia/Request.php +++ b/src/Appwrite/Utopia/Request.php @@ -32,11 +32,6 @@ class Request extends UtopiaRequest return new self($this->swoole); } - public function getSwoole(): SwooleRequest - { - return $this->swoole; - } - /** * Get Params *