From 9736eeacb36de477c495b4257fd56a6a428cc026 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Mon, 15 Jan 2024 16:16:42 +0100 Subject: [PATCH] Document QueryComplexity::directiveExcludesField --- src/Validator/Rules/QueryComplexity.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Validator/Rules/QueryComplexity.php b/src/Validator/Rules/QueryComplexity.php index 3aa482760..ee1446776 100644 --- a/src/Validator/Rules/QueryComplexity.php +++ b/src/Validator/Rules/QueryComplexity.php @@ -160,6 +160,8 @@ protected function fieldDefinition(FieldNode $field): ?FieldDefinition } /** + * Will the given field be executed at all, given the directives placed upon it? + * * @throws \Exception * @throws \ReflectionException * @throws InvariantViolation