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