-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extract and export NonFtv1ErrorPath interface
- Loading branch information
1 parent
0367f6a
commit 52f8b64
Showing
3 changed files
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ import type { | |
OperationDefinitionNode, | ||
} from 'graphql'; | ||
import type { CachePolicy } from '@apollo/cache-control-types'; | ||
import type { NonFtv1ErrorPath } from '@apollo/server-gateway-interface'; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
trevor-scheer
Author
Member
|
||
|
||
export interface GraphQLRequestMetrics { | ||
// It would be more accurate to call this fieldLevelInstrumentation (it is | ||
|
@@ -33,7 +34,7 @@ export interface GraphQLRequestMetrics { | |
registeredOperation?: boolean; | ||
startHrTime?: [number, number]; | ||
queryPlanTrace?: Trace.QueryPlanNode; | ||
nonFtv1ErrorPaths?: { subgraph: string; path: GraphQLError['path'] }[]; | ||
nonFtv1ErrorPaths?: NonFtv1ErrorPath[]; | ||
} | ||
|
||
export interface GraphQLRequestContext<TContext extends BaseContext> { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
just want to note that I confirmed that dependencies from
server/src/externalTypes
onserver-gateway-interface
is a thing that we do already (whereas the reverse is bad)