References SerializeStageInterface
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
}

Methods

__invoke

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

Parameters

itemOrCollectionobject
array
resourceClassstring
operation`ApiPlatform\Metadata\GraphQl\Operation`
contextarray

Returns

array

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