Guides
Tutorials
Serialize stage of GraphQL resolvers.
class ApiPlatform\GraphQl\Resolver\Stage\SerializeStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/SerializeStageInterface">ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface</a>`
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, ApiPlatform\State\Pagination\Pagination $pagination)
public __invoke(null|object|array $itemOrCollection, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): array
}
class ApiPlatform\GraphQl\Resolver\Stage\SerializeStage implements `<a href="/docs/reference/GraphQl/Resolver/Stage/SerializeStageInterface">ApiPlatform\GraphQl\Resolver\Stage\SerializeStageInterface</a>`
{
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, ApiPlatform\State\Pagination\Pagination $pagination)
public __invoke(null|object|array $itemOrCollection, string $resourceClass, ApiPlatform\Metadata\GraphQl\Operation $operation, array $context): array
}
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, ApiPlatform\State\Pagination\Pagination $pagination)
public __construct(Symfony\Component\Serializer\Normalizer\NormalizerInterface $normalizer, ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface $serializerContextBuilder, ApiPlatform\State\Pagination\Pagination $pagination)
normalizer | Symfony\Component\Serializer\Normalizer\NormalizerInterface | |
serializerContextBuilder | ApiPlatform\GraphQl\Serializer\SerializerContextBuilderInterface | |
pagination | ApiPlatform\State\Pagination\Pagination |
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
itemOrCollection | object array | |
resourceClass | string | |
operation | ApiPlatform\Metadata\GraphQl\Operation | |
context | array |
array