Skip to main content

ComplexityExtensionOptions<Context>

Configuration options for the complexity extension.

Type Parameters

Type Parameter

Context

Properties

PropertyTypeDefault valueDescription

complexityError?

GetComplexityError

undefined

Custom error message generator

defaultComplexity?

number

1;

Base complexity score for fields

defaultListMultiplier?

number

10;

Multiplier applied to list fields

limit?

GetComplexityLimit<Context>

undefined

Static limits or function to determine limits based on context