Examples\Blog\Schema\LatestPostField::resolve PHP Метод

resolve() публичный Метод

public resolve ( $value, array $args, ResolveInfo $info )
$args array
$info Youshido\GraphQL\Execution\ResolveInfo
    public function resolve($value, array $args, ResolveInfo $info)
    {
        return ["title" => "New approach in API has been revealed", "summary" => "This post describes a new approach to create and maintain APIs"];
    }
LatestPostField