public async ValueTask <IResolveResult> GetReviewsAsync(ResolverContext context)
        {
            var input  = context.GetArgument <GetReviewsRequest>("input");
            var result = await _reviewServiceClient.GetReviewsAsync(input);

            return(As(result.Reviews));
        }
 public async Task <IActionResult> Get(Guid productId)
 {
     return(Ok(
                await _reviewServiceClient.GetReviewsAsync(new GetReviewsRequest {
         ProductId = productId.ToString()
     })
                ));
 }
 public async ValueTask <IResolveResult> GetReviewsAsync(ResolverContext context)
 {
     return(await GrpcClientCatch(
                "review-service",
                async headers =>
     {
         var input = context.GetArgument <GetReviewsRequest>("input");
         var result = await _reviewServiceClient.GetReviewsAsync(input, headers);
         return As(result.Reviews);
     }));
 }