Tap.php in GraphQL 8.4
File
src/GraphQL/Resolver/Tap.php
View source
<?php
namespace Drupal\graphql\GraphQL\Resolver;
use Drupal\graphql\GraphQL\Execution\FieldContext;
use Drupal\graphql\GraphQL\Execution\ResolveContext;
use GraphQL\Type\Definition\ResolveInfo;
class Tap implements ResolverInterface {
protected $resolver;
public function __construct(ResolverInterface $resolver) {
$this->resolver = $resolver;
}
public function resolve($value, $args, ResolveContext $context, ResolveInfo $info, FieldContext $field) {
$this->resolver
->resolve($value, $args, $context, $info, $field);
return $value;
}
}
Classes
Name |
Description |
Tap |
Resolves by forwarding to another resolver. |