References UploadType
Reference
C
Class

ApiPlatform\GraphQl\Type\Definition\UploadType

Represents an upload type.

class ApiPlatform\GraphQl\Type\Definition\UploadType extends GraphQL\Type\Definition\ScalarType implements JsonSerializable, Stringable, GraphQL\Type\Definition\OutputType, GraphQL\Type\Definition\InputType, GraphQL\Type\Definition\LeafType, GraphQL\Type\Definition\NullableType, GraphQL\Type\Definition\NamedType, ApiPlatform\GraphQl\Type\Definition\TypeInterface
{
    public __construct()
    public getName(): string
    public serialize($value): null
    public parseValue($value): Symfony\Component\HttpFoundation\File\UploadedFile
    public parseLiteral(GraphQL\Language\AST\Node $valueNode, null|array $variables): null
    public assertValid(): null
    public astNode(): GraphQL\Language\AST\ScalarTypeDefinitionNode
    public extensionASTNodes(): array<int, GraphQL\Language\AST\ScalarTypeExtensionNode>
    public int(): GraphQL\Type\Definition\ScalarType
    public float(): GraphQL\Type\Definition\ScalarType
    public string(): GraphQL\Type\Definition\ScalarType
    public boolean(): GraphQL\Type\Definition\ScalarType
    public id(): GraphQL\Type\Definition\ScalarType
    public listOf(GraphQL\Type\Definition\T|callable $type): GraphQL\Type\Definition\ListOfType[]
    public nonNull(callable $type): GraphQL\Type\Definition\NonNull
    public builtInTypes(): array<string, mixed>
    public getStandardTypes(): array<string, GraphQL\Type\Definition\ScalarType>
    public overrideStandardTypes(array $types): null
    public isInputType($type): bool
    public getNamedType(null|GraphQL\Type\Definition\Type $type): null
    public isOutputType($type): bool
    public isLeafType($type): bool
    public isCompositeType($type): bool
    public isAbstractType($type): bool
    public getNullableType(GraphQL\Type\Definition\Type $type)
    public toString(): string
    public __toString(): string
    public jsonSerialize(): string
    protected inferName(): string
    public isBuiltInType(): bool
    public name(): string
    public description(): string
}

Properties

astNode

GraphQL\Language\AST\ScalarTypeDefinitionNode $astNode

extensionASTNodes

array $extensionASTNodes

config

array $config

standardTypes

array<string, GraphQL\Type\Definition\ScalarType> $standardTypes

name

string $name

description

string $description

Methods

__construct

public __construct()

getName

public getName(): string

Returns

string

serialize

Serializes an internal value to include in a response.Should throw an exception on invalid values.Serializes an internal value to include in a response.Should throw an exception on invalid values.

public serialize($value): null

Parameters

value

Returns

null

parseValue

Parses an externally provided value (query variable) to use as an input.Should throw an exception with a client friendly message on invalid values, @see ClientAware.Parses an externally provided value (query variable) to use as an input.Should throw an exception with a client friendly message on invalid values, @see ClientAware.

public parseValue($value): Symfony\Component\HttpFoundation\File\UploadedFile

Parameters

value

Returns

Symfony\Component\HttpFoundation\File\UploadedFile

parseLiteral

Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.Should throw an exception with a client friendly message on invalid value nodes, @see ClientAware.Parses an externally provided literal value (hardcoded in GraphQL query) to use as an input.Should throw an exception with a client friendly message on invalid value nodes, @see ClientAware.

public parseLiteral(GraphQL\Language\AST\Node $valueNode, null|array $variables): null

Parameters

valueNodeGraphQL\Language\AST\Node
variablesarray

Returns

null

Made with love by

Les-Tilleuls.coop can help you design and develop your APIs and web projects, and train your teams in API Platform, Symfony, Next.js, Kubernetes and a wide range of other technologies.

Learn more

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop