Reference
C
Class

ApiPlatform\GraphQl\Resolver\ResourceFieldResolver

A field resolver that resolves IDs to IRIs and allow to access to the raw ID using the "#id" field.

class ApiPlatform\GraphQl\Resolver\ResourceFieldResolver
{
    public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter)
    public __invoke(null|array $source, array $args, $context, GraphQL\Type\Definition\ResolveInfo $info)
}
class ApiPlatform\GraphQl\Resolver\ResourceFieldResolver
{
    public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter)
    public __invoke(null|array $source, array $args, $context, GraphQL\Type\Definition\ResolveInfo $info)
}

Methods

__construct

public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter)
public __construct(ApiPlatform\Api\IriConverterInterface $iriConverter)

Parameters

iriConverterApiPlatform\Api\IriConverterInterface

__invoke

public __invoke(null|array $source, array $args, $context, GraphQL\Type\Definition\ResolveInfo $info)
public __invoke(null|array $source, array $args, $context, GraphQL\Type\Definition\ResolveInfo $info)

Parameters

sourcearray
argsarray
context
infoGraphQL\Type\Definition\ResolveInfo

Returns

Copyright © 2023 Kévin Dunglas

Sponsored by Les-Tilleuls.coop