@PublicApi @FunctionalInterface public interface FieldComplexityCalculator
MaxQueryComplexityInstrumentation
.Modifier and Type | Method and Description |
---|---|
int |
calculate(FieldComplexityEnvironment environment,
int childComplexity)
Calculates the complexity of a field
|
int calculate(FieldComplexityEnvironment environment, int childComplexity)
environment
- several information about the current fieldchildComplexity
- the sum of all child complexity scores