Add abuse limits
This commit is contained in:
parent
4a34971043
commit
196c763421
|
@ -19,6 +19,10 @@ App::post('/v1/graphql')
|
|||
->label('sdk.response.type', Response::CONTENT_TYPE_JSON)
|
||||
->label('sdk.response.model', Response::MODEL_ANY)
|
||||
->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('variables', [], new JSON(), 'Variables to use in the operation', true)
|
||||
->inject('request')
|
||||
->inject('response')
|
||||
->inject('schema')
|
||||
|
|
Loading…
Reference in a new issue