Skip to content

Commit 265e687

Browse files
committed
rename completePromise to completePromisedValue
...integrating review feedback
1 parent 5f90143 commit 265e687

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/execution/execute.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ function executeField(
715715
const result = resolveFn(source, args, contextValue, info);
716716

717717
if (isPromise(result)) {
718-
return completePromise(
718+
return completePromisedValue(
719719
exeContext,
720720
returnType,
721721
fieldNodes,
@@ -912,7 +912,7 @@ function completeValue(
912912
);
913913
}
914914

915-
async function completePromise(
915+
async function completePromisedValue(
916916
exeContext: ExecutionContext,
917917
returnType: GraphQLOutputType,
918918
fieldNodes: ReadonlyArray<FieldNode>,
@@ -1182,7 +1182,7 @@ function completeListItemValue(
11821182
): boolean {
11831183
if (isPromise(item)) {
11841184
completedResults.push(
1185-
completePromise(
1185+
completePromisedValue(
11861186
exeContext,
11871187
itemType,
11881188
fieldNodes,
@@ -1911,7 +1911,7 @@ function executeStreamField(
19111911
exeContext,
19121912
});
19131913
if (isPromise(item)) {
1914-
const completedItems = completePromise(
1914+
const completedItems = completePromisedValue(
19151915
exeContext,
19161916
itemType,
19171917
fieldNodes,

0 commit comments

Comments
 (0)