diff --git a/app/controllers/api/graphql.php b/app/controllers/api/graphql.php index 4b424e8c1a..622b861b90 100644 --- a/app/controllers/api/graphql.php +++ b/app/controllers/api/graphql.php @@ -27,7 +27,7 @@ App::post('/v1/graphql') ->label('abuse-limit', 60) ->label('abuse-time', 60) ->param('query', '', new Text(1024), 'The query to execute. Max 1024 chars.') - ->param('operationName', '', new Text(256), 'Name of the operation to execute', true) + ->param('operationName', null, new Text(256), 'Name of the operation to execute', true) ->param('variables', [], new JSON(), 'Variables to use in the operation', true) ->inject('request') ->inject('response')