Skip to content

Commit 43f4949

Browse files
committed
Really ignore field and not create an empty InputType
1 parent e5d1cab commit 43f4949

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/Config/Parser/AnnotationParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ private static function getGraphQLInputFieldsFromAnnotations(GraphClass $graphCl
627627

628628
// Ignore field with resolver when the type is an Input
629629
if (isset($fieldAnnotation->resolve)) {
630-
return [];
630+
continue;
631631
}
632632

633633
$fieldName = $reflector->getName();

tests/Config/Parser/fixtures/annotations/Input/Planet.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
*/
1313
class Planet
1414
{
15+
/**
16+
* @GQL\Field(resolve="...")
17+
*/
18+
protected string $skipField;
19+
1520
/**
1621
* @GQL\Field(type="String!")
1722
*/

0 commit comments

Comments
 (0)