src/Type/SchemaValidationContext.php
private function getFieldNode($type, $fieldName)
    {
        $nodes = $this->getAllFieldNodes($type, $fieldName);

        return $nodes[0] ?? null;
    }
private function getFieldNode($type, $fieldName)
    {
        $nodes = $this->getAllFieldNodes($type, $fieldName);

        return $nodes[0] ?? null;
    }
@param ObjectType|InterfaceType $type
@param string                   $fieldName

@return FieldDefinitionNode|null