From b8bd81e232bf61f0eb4373dcdeb51878cbd89e1c Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Mon, 18 Jul 2022 19:31:07 +1200 Subject: [PATCH] Add back fullBody params for testing --- app/controllers/api/graphql.php | 4 ++-- composer.json | 2 +- composer.lock | 17 +++++++++-------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 79f3fa8d6..9b2145500 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -27,7 +27,7 @@ App::get('/v1/graphql') ->label('sdk.response.model', Response::MODEL_ANY) ->label('abuse-limit', 60) ->label('abuse-time', 60) - ->param('query', '', new JSON(), 'The query or queries to execute.') + ->param('query', '', new JSON(), 'The query or queries to execute.', fullBody: true) ->inject('request') ->inject('response') ->inject('utopia') @@ -50,7 +50,7 @@ App::post('/v1/graphql') ->label('sdk.response.model', Response::MODEL_ANY) ->label('abuse-limit', 60) ->label('abuse-time', 60) - ->param('query', '', new JSON(), 'The query or queries to execute.') + ->param('query', '', new JSON(), 'The query or queries to execute.', fullBody: true) ->inject('request') ->inject('response') ->inject('promiseAdapter') diff --git a/composer.json b/composer.json index 1c6442e67..cb047ce7b 100644 --- a/composer.json +++ b/composer.json @@ -42,7 +42,7 @@ "ext-sockets": "*", "appwrite/php-clamav": "1.1.*", "appwrite/php-runtimes": "0.10.*", - "utopia-php/framework": "dev-feat-graphql-helpers as 0.19.2", + "utopia-php/framework": "dev-feat-unkeyed-full-body-params as 0.19.2", "utopia-php/logger": "0.3.*", "utopia-php/abuse": "0.7.*", "utopia-php/analytics": "0.2.*", diff --git a/composer.lock b/composer.lock index 49325f861..ee93718e1 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2fd5f977b2e1f35e968a03dc9f0aefe8", + "content-hash": "46322a96c520e8b5c11040dec5f41620", "packages": [ { "name": "adhocore/jwt", @@ -2169,22 +2169,23 @@ }, { "name": "utopia-php/framework", - "version": "dev-feat-graphql-helpers", + "version": "dev-feat-unkeyed-full-body-params", "source": { "type": "git", "url": "https://github.com/utopia-php/framework.git", - "reference": "5c1ef70c7134b4c1f3907143c78718173cf20bd1" + "reference": "f55faa8d4858844291d0b16788cd5b0c540eaef7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/framework/zipball/5c1ef70c7134b4c1f3907143c78718173cf20bd1", - "reference": "5c1ef70c7134b4c1f3907143c78718173cf20bd1", + "url": "https://api.github.com/repos/utopia-php/framework/zipball/f55faa8d4858844291d0b16788cd5b0c540eaef7", + "reference": "f55faa8d4858844291d0b16788cd5b0c540eaef7", "shasum": "" }, "require": { "php": ">=8.0.0" }, "require-dev": { + "ext-curl": "*", "phpunit/phpunit": "^9.5.10", "vimeo/psalm": "4.13.1" }, @@ -2212,9 +2213,9 @@ ], "support": { "issues": "https://github.com/utopia-php/framework/issues", - "source": "https://github.com/utopia-php/framework/tree/feat-graphql-helpers" + "source": "https://github.com/utopia-php/framework/tree/feat-unkeyed-full-body-params" }, - "time": "2022-07-18T02:13:04+00:00" + "time": "2022-07-18T07:12:16+00:00" }, { "name": "utopia-php/image", @@ -5415,7 +5416,7 @@ "aliases": [ { "package": "utopia-php/framework", - "version": "dev-feat-graphql-helpers", + "version": "dev-feat-unkeyed-full-body-params", "alias": "0.19.2", "alias_normalized": "0.19.2.0" }