Reference
I
Interface

ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface

Serialize stage of GraphQL resolvers.

interface ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface
{
    public __invoke(null|object|array $itemOrCollection, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): array
}
interface ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface
{
    public __invoke(null|object|array $itemOrCollection, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): array
}

Methods

__invoke

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

Parameters

itemOrCollectionobject
array
resourceClassstring
operationApiPlatform\Metadata\GraphQl\Operation
contextarray

Returns

array

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop