Skip to content

Commit 6655706

Browse files
JoviDeCroockbenjie
andauthored
Update execute.ts
Co-authored-by: Benjie <[email protected]>
1 parent 1c2cee6 commit 6655706

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/execution/execute.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,8 @@ export const defaultTypeResolver: GraphQLTypeResolver<unknown, unknown> =
10031003
promisedIsTypeOfResults[i] = isTypeOfResult;
10041004
} else if (isTypeOfResult) {
10051005
if (promisedIsTypeOfResults.length) {
1006-
Promise.allSettled(promisedIsTypeOfResults);
1006+
// Explicitly ignore any promise rejections
1007+
void Promise.allSettled(promisedIsTypeOfResults);
10071008
}
10081009
return type.name;
10091010
}

0 commit comments

Comments
 (0)