diff --git a/docs/.artifacts/cms/4.x/config-general.md b/docs/.artifacts/cms/4.x/config-general.md index 46d8060b2..5b92db4d0 100644 --- a/docs/.artifacts/cms/4.x/config-general.md +++ b/docs/.artifacts/cms/4.x/config-general.md @@ -4504,6 +4504,37 @@ CRAFT_GQL_TYPE_PREFIX=craft_ +### `maxGraphqlBatchSize` + +
+ +Allowed types +: [integer](https://php.net/language.types.integer) + +Default value +: `0` + +Defined by +: [GeneralConfig::$maxGraphqlBatchSize](craft4:craft\config\GeneralConfig::$maxGraphqlBatchSize) + +Since +: 4.5.5 + +
+ +The maximum allowed GraphQL queries that can be executed in a single batched request. Set to `0` to allow any number of queries. + +::: code +```php Static Config +->maxGraphqlBatchSize(5) +``` +```shell Environment Override +CRAFT_MAX_GRAPHQL_BATCH_SIZE=5 +``` +::: + + + ### `maxGraphqlComplexity`
@@ -4517,10 +4548,22 @@ Default value Defined by : [GeneralConfig::$maxGraphqlComplexity](craft4:craft\config\GeneralConfig::$maxGraphqlComplexity) +Since +: 3.6.0 +
The maximum allowed complexity a GraphQL query is allowed to have. Set to `0` to allow any complexity. +::: code +```php Static Config +->maxGraphqlComplexity(500) +``` +```shell Environment Override +CRAFT_MAX_GRAPHQL_COMPLEXITY=500 +``` +::: + ### `maxGraphqlDepth`