Skip to content

Commit

Permalink
fixed complexity plugin code example
Browse files Browse the repository at this point in the history
  • Loading branch information
xoldd committed Jan 27, 2023
1 parent c582f0a commit 597a33e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions website/pages/docs/plugins/complexity.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 597a33e

Please sign in to comment.