Fix operation name empty

This commit is contained in:
Jake Barnby
2022-04-08 17:55:17 +12:00
parent af98bb9c4a
commit a1d877b726
+1 -1
View File
@@ -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')