Guides
Tutorials
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
}
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
public __construct(ApiPlatform\State\ProcessorInterface $processor, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder)
processor | ApiPlatform\State\ProcessorInterface | |
serializerContextBuilder | ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface |
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
data | object | |
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
context | array |
object