Skip to content
This repository has been archived by the owner on Apr 29, 2019. It is now read-only.

Commit

Permalink
GraphQl-28: Implement query complexity limiting
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeriy Nayda committed Nov 12, 2018
1 parent 1847c71 commit 6392294
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/code/Magento/GraphQl/etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<type name="Magento\Framework\GraphQl\Query\QueryComplexityLimiter">
<arguments>
<argument name="queryDepth" xsi:type="number">20</argument>
<argument name="queryComplexity" xsi:type="number">160</argument>
<argument name="queryComplexity" xsi:type="number">250</argument>
</arguments>
</type>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class QueryComplexityLimiter
* @param int $queryComplexity
*/
public function __construct(
int $queryDepth = 20,
int $queryComplexity = 160
int $queryDepth,
int $queryComplexity
) {
$this->queryDepth = $queryDepth;
$this->queryComplexity = $queryComplexity;
Expand Down

0 comments on commit 6392294

Please sign in to comment.