$nodeType */ public function __construct( protected string $nodeType, ) { parent::__construct('node', nullable: false); } public function baseType(): Type { $type = Str::of(class_basename($this->nodeType)) ->remove('Type') ->__toString(); return Type::nonNull(GraphQL::type($type)); } public function canBeDisplayed(): bool { return true; } }