Reference
C
Class

ApiPlatform\GraphQl\Resolver\Stage\WriteStage

Write stage of GraphQL resolvers.

class ApiPlatform\GraphQl\Resolver\Stage\WriteStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/WriteStageInterface">ApiPlatform\GraphQl\Resolver\Stage\WriteStageInterface</a>`
{
    public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
    public __invoke(null|object $data, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
}
class ApiPlatform\GraphQl\Resolver\Stage\WriteStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/WriteStageInterface">ApiPlatform\GraphQl\Resolver\Stage\WriteStageInterface</a>`
{
    public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
    public __invoke(null|object $data, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
}

Methods

__construct

public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)

Parameters

processorApiPlatform\State\ProcessorInterface
serializerContextBuilderApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface

__invoke

public __invoke(null|object $data, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object
public __invoke(null|object $data, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): object

Parameters

dataobject
resourceClassstring
operationApiPlatform\Metadata\GraphQl\Operation
contextarray

Returns

object

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop