Skip to content

Commit

Permalink
Update sendOperation to make operationDocumentNode optional
Browse files Browse the repository at this point in the history
  • Loading branch information
theJC committed Jun 17, 2022
1 parent 389cb4a commit a416627
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gateway-js/src/datasources/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export type GraphQLDataSourceProcessOptions<
*/
context: GraphQLRequestContext<TContext>['context'];
/**
* The document representation of the request's query being sent to the subgraph.
* The document representation of the request's query being sent to the subgraph, if available.
*/
document?: GraphQLRequestContext<TContext>['document'];
}
Expand Down
2 changes: 1 addition & 1 deletion gateway-js/src/executeQueryPlan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ async function executeFetch<TContext>(
source: string,
variables: Record<string, any>,
operationName: string | undefined,
operationDocumentNode: DocumentNode
operationDocumentNode?: DocumentNode
): Promise<ResultMap | void | null> {
// We declare this as 'any' because it is missing url and method, which
// GraphQLRequest.http is supposed to have if it exists.
Expand Down

0 comments on commit a416627

Please sign in to comment.