Guides
Tutorials
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, `<a href="/docs/reference/GraphQl/Type/Definition/TypeInterface">ApiPlatform\GraphQl\Type\Definition\TypeInterface</a>`
{
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>
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
}
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, `<a href="/docs/reference/GraphQl/Type/Definition/TypeInterface">ApiPlatform\GraphQl\Type\Definition\TypeInterface</a>`
{
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>
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
}
GraphQL\Language\AST\ScalarTypeDefinitionNode $astNode
GraphQL\Language\AST\ScalarTypeDefinitionNode $astNode
array $extensionASTNodes
array $extensionASTNodes
array $config
array $config
array<string, GraphQL\Type\Definition\ScalarType> $standardTypes
array<string, GraphQL\Type\Definition\ScalarType> $standardTypes
string $name
string $name
string $description
string $description
public __construct()
public __construct()
public getName(): string
public getName(): string
string
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
public serialize($value): null
value |
null
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
public parseValue($value): Symfony\Component\HttpFoundation\File\UploadedFile
value |
Symfony\Component\HttpFoundation\File\UploadedFile
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
public parseLiteral(GraphQL\Language\AST\Node $valueNode, null|array $variables): null
valueNode | GraphQL\Language\AST\Node | |
variables | array |
null