Skip to content

Commit

Permalink
no pretty fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ssddOnTop committed Apr 15, 2024
1 parent 6ae1145 commit a356065
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions tests/execution/grpc-error.md
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
```

Expand Down

0 comments on commit a356065

Please sign in to comment.