We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
subgraphName
ExecutionRequest
1 parent f7fca14 commit 53db005Copy full SHA for 53db005
.changeset/three-impalas-love.md
@@ -0,0 +1,6 @@
1
+---
2
+'@graphql-tools/utils': minor
3
4
+
5
+Add optional `subgraphName` preoperty to the `ExecutionRequest` interface for usage in Gateways like
6
+Hive Gateway.
packages/utils/src/Interfaces.ts
@@ -89,6 +89,8 @@ export interface ExecutionRequest<
89
rootValue?: TRootValue;
90
// If the request originates within execution of a parent request, it may contain the parent context and info
91
context?: TContext;
92
+ // If the request originates within a supergraph execution, it may contain the target subgraph name
93
+ subgraphName?: string;
94
info?: GraphQLResolveInfo;
95
signal?: AbortSignal;
96
}
0 commit comments