Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .changeset/three-impalas-love.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-tools/utils': minor
---

Add optional `subgraphName` preoperty to the `ExecutionRequest` interface for usage in Gateways like
Hive Gateway.
2 changes: 2 additions & 0 deletions packages/utils/src/Interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ export interface ExecutionRequest<
rootValue?: TRootValue;
// If the request originates within execution of a parent request, it may contain the parent context and info
context?: TContext;
// If the request originates within a supergraph execution, it may contain the target subgraph name
subgraphName?: string;
info?: GraphQLResolveInfo;
signal?: AbortSignal;
}
Expand Down
Loading