Skip to content

Commit

Permalink
rename completePromise to completePromisedValue
Browse files Browse the repository at this point in the history
...integrating review feedback
  • Loading branch information
yaacovCR committed Dec 14, 2022
1 parent 5f90143 commit 265e687
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ function executeField(
const result = resolveFn(source, args, contextValue, info);

if (isPromise(result)) {
return completePromise(
return completePromisedValue(
exeContext,
returnType,
fieldNodes,
Expand Down Expand Up @@ -912,7 +912,7 @@ function completeValue(
);
}

async function completePromise(
async function completePromisedValue(
exeContext: ExecutionContext,
returnType: GraphQLOutputType,
fieldNodes: ReadonlyArray<FieldNode>,
Expand Down Expand Up @@ -1182,7 +1182,7 @@ function completeListItemValue(
): boolean {
if (isPromise(item)) {
completedResults.push(
completePromise(
completePromisedValue(
exeContext,
itemType,
fieldNodes,
Expand Down Expand Up @@ -1911,7 +1911,7 @@ function executeStreamField(
exeContext,
});
if (isPromise(item)) {
const completedItems = completePromise(
const completedItems = completePromisedValue(
exeContext,
itemType,
fieldNodes,
Expand Down

0 comments on commit 265e687

Please sign in to comment.