Skip to content

Commit 805ee45

Browse files
authored
Updated instructions for disabling cost limit enforcement (#7594)
1 parent 5bea82c commit 805ee45

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

website/src/docs/hotchocolate/v14/security/cost-analysis.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,11 +480,12 @@ builder.Services
480480
});
481481
```
482482

483-
# Disabling cost analysis
483+
# Disabling cost limit enforcement
484484

485-
While we generally don't recommended disabling cost analysis, you may wish to do so if you're using other methods to restrict operation complexity. If that's the case, simply set the `disableCostAnalyzer` option to `true`:
485+
While we generally don't recommended disabling the enforcement of cost limits, you may wish to do so if you're using other methods to restrict operation complexity. If that's the case, simply set the `EnforceCostLimits` option to `false`:
486486

487487
```csharp
488488
builder.Services
489-
.AddGraphQLServer(disableCostAnalyzer: true)
489+
.AddGraphQLServer()
490+
.ModifyCostOptions(o => o.EnforceCostLimits = false)
490491
```

0 commit comments

Comments
 (0)