From a35606575d1d7fed757969f417f9282b31add0c3 Mon Sep 17 00:00:00 2001 From: Sandipsinh Rathod Date: Mon, 15 Apr 2024 11:09:51 +0530 Subject: [PATCH] no pretty fix --- tests/execution/grpc-error.md | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/tests/execution/grpc-error.md b/tests/execution/grpc-error.md index 3170a4d612..9a1d368d67 100644 --- a/tests/execution/grpc-error.md +++ b/tests/execution/grpc-error.md @@ -37,33 +37,31 @@ message NewsList { ``` ```graphql @server -schema - @server(port: 8000, graphiql: true) - @upstream(httpCache: true, batch: {delay: 10}) - @link(id: "news", src: "news.proto", type: Protobuf) { +schema @server(graphiql: true, port: 8000) @upstream(batch: {delay: 10, headers: [], maxSize: 100}, httpCache: true) @link(id: "news", src: "news.proto", type: Protobuf) { query: Query } -type Query { - news: NewsData! @grpc(method: "news.NewsService.GetAllNews", baseURL: "http://localhost:50051") - newsById(news: NewsInput!): News! - @grpc(method: "news.NewsService.GetNews", baseURL: "http://localhost:50051", body: "{{args.news}}") -} input NewsInput { + body: String id: Int + postImage: String title: String +} + +type News { body: String + id: Int postImage: String + title: String } + type NewsData { news: [News]! } -type News { - id: Int - title: String - body: String - postImage: String +type Query { + news: NewsData! @grpc(baseURL: "http://localhost:50051", method: "news.NewsService.GetAllNews") + newsById(news: NewsInput!): News! @grpc(baseURL: "http://localhost:50051", body: "{{args.news}}", method: "news.NewsService.GetNews") } ```