src/Schema/AST/DocumentAST.php
public function extensionsForType(string $extendedTypeName): Collection
    {
        return $this->typeExtensionsMap
            ->filter(function (TypeExtensionNode $typeExtension) use ($extendedTypeName): bool {
                return $extendedTypeName === $typeExtension->name->value;
            });
    }
public function extensionsForType(string $extendedTypeName): Collection
    {
        return $this->typeExtensionsMap
            ->filter(function (TypeExtensionNode $typeExtension) use ($extendedTypeName): bool {
                return $extendedTypeName === $typeExtension->name->value;
            });
    }
public function extensionsForType ( string $ extendedTypeName ) : Collection { return $ this -> typeExtensionsMap -> filter ( function ( TypeExtensionNode $ typeExtension ) use ( $ extendedTypeName ) : bool { return $ extendedTypeName === $ typeExtension -> name -> value ; } ) ; }
Get all extensions that apply to a named type.

@param  string  $extendedTypeName
@return \Illuminate\Support\Collection<\GraphQL\Language\AST\TypeExtensionNode>
Get all extensions that apply to a named type .