1
0
Fork 0
mirror of synced 2024-06-28 19:20:25 +12:00

Fix parameters

This commit is contained in:
Jake Barnby 2022-07-13 17:06:48 +12:00
parent 3f2037a906
commit 4732127777
2 changed files with 5 additions and 5 deletions

View file

@ -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.', body: true)
->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.', body: true)
->param('query', '', new JSON(), 'The query or queries to execute.', fullBody: true)
->inject('request')
->inject('response')
->inject('promiseAdapter')
@ -121,8 +121,8 @@ function graphqlRequest(
$promiseAdapter,
$gqlSchema,
$indexed['query'],
variableValues: $indexed['variables'],
operationName: $indexed['operationName'],
variableValues: $indexed['variables'] ?? null,
operationName: $indexed['operationName'] ?? null,
validationRules: $validations
);
}

View file

@ -8,7 +8,7 @@ use Tests\E2E\Scopes\ProjectCustom;
use Tests\E2E\Scopes\Scope;
use Tests\E2E\Scopes\SideServer;
class GraphQLBodyTypeTest extends Scope
class GraphQLContentTypeTest extends Scope
{
use ProjectCustom;
use SideServer;