Skip to content

Commit

Permalink
add docs for grpc reflection custom headers
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Yeole <[email protected]>
  • Loading branch information
beelchester committed Sep 27, 2024
1 parent f6e62bd commit bbcc627
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/directives.md
Original file line number Diff line number Diff line change
Expand Up @@ -1121,6 +1121,8 @@ The `@link` directive requires specifying a source `src`, the resource's type `t

- `id`: This is an optional field that assigns a unique identifier to the link. It's helpful for referring to the link within the schema.

- `headers`: This is an optional field that assigns custom headers to the gRPC reflection server requests. Specifying a key-value map of header names and their values achieves this.

### Example

The following example illustrates how to utilize the `@link` directive to incorporate a Protocol Buffers (.proto) file for a gRPC service into your GraphQL schema.
Expand Down

0 comments on commit bbcc627

Please sign in to comment.