Skip to content

Commit

Permalink
isPromise workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
saihaj authored and IvanGoncharov committed Dec 7, 2021
1 parent 7e8e07f commit 2a9a37c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/mutation/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export function mutationWithClientMutationId(
const { clientMutationId } = input;
const payload = mutateAndGetPayload(input, context, info);
if (isPromise(payload)) {
// @ts-expect-error FIXME
// @ts-expect-error update to 16.x.x should fix this
return payload.then(injectClientMutationId);
}
return injectClientMutationId(payload);
Expand Down
1 change: 1 addition & 0 deletions src/mutation/type.d.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
// Remove after update to 16.x.x
// eslint-disable-next-line import/unambiguous
declare module 'graphql/jsutils/isPromise';

0 comments on commit 2a9a37c

Please sign in to comment.