From 597a33edcd2bd1680c77ee119ccd083269c5dd9a Mon Sep 17 00:00:00 2001 From: xoldyckk Date: Fri, 27 Jan 2023 17:42:59 +0530 Subject: [PATCH] fixed complexity plugin code example --- website/pages/docs/plugins/complexity.mdx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/website/pages/docs/plugins/complexity.mdx b/website/pages/docs/plugins/complexity.mdx index 0e016290e..9edbb63c5 100644 --- a/website/pages/docs/plugins/complexity.mdx +++ b/website/pages/docs/plugins/complexity.mdx @@ -43,9 +43,10 @@ building the schema: ```typescript const builder = new SchemaBuilder({ plugins: [ComplexityPlugin], - defaultComplexity: 1, - defaultListMultiplier: 10, + complexity: { + defaultComplexity: 1, + defaultListMultiplier: 10, limit: { complexity: 500, depth: 10,