Skip to content

Commit ba9cec9

Browse files
authored
LYNX-600: Increase max default GraphQL query complexity to 1000
1 parent d98879b commit ba9cec9

File tree

3 files changed

+902
-9
lines changed

3 files changed

+902
-9
lines changed

app/code/Magento/GraphQl/etc/di.xml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
<?xml version="1.0"?>
22
<!--
3-
/**
4-
* Copyright © Magento, Inc. All rights reserved.
5-
* See COPYING.txt for license details.
3+
/************************************************************************
4+
*
5+
* Copyright 2024 Adobe
6+
* All Rights Reserved.
7+
*
8+
* NOTICE: All information contained herein is, and remains
9+
* the property of Adobe and its suppliers, if any. The intellectual
10+
* and technical concepts contained herein are proprietary to Adobe
11+
* and its suppliers and are protected by all applicable intellectual
12+
* property laws, including trade secret and copyright laws.
13+
* Dissemination of this information or reproduction of this material
14+
* is strictly forbidden unless prior written permission is obtained
15+
* from Adobe.
16+
* ************************************************************************
617
*/
718
-->
819
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
@@ -104,7 +115,7 @@
104115
<type name="Magento\Framework\GraphQl\Query\QueryComplexityLimiter">
105116
<arguments>
106117
<argument name="queryDepth" xsi:type="number">20</argument>
107-
<argument name="queryComplexity" xsi:type="number">300</argument>
118+
<argument name="queryComplexity" xsi:type="number">1000</argument>
108119
</arguments>
109120
</type>
110121
<type name="Magento\Framework\GraphQl\Query\Resolver\Argument\Validator\CompositeValidator">

0 commit comments

Comments
 (0)