We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 977cbae commit 427d32dCopy full SHA for 427d32d
src/mutation/mutation.js
@@ -86,11 +86,12 @@ export function mutationWithClientMutationId(
86
args: {
87
input: {type: new GraphQLNonNull(inputType)}
88
},
89
- resolve: (_, {input}, info) => {
90
- return Promise.resolve(mutateAndGetPayload(input, info)).then(payload => {
91
- payload.clientMutationId = input.clientMutationId;
92
- return payload;
93
- });
+ resolve: (_, {input}, context, info) => {
+ return Promise.resolve(mutateAndGetPayload(input, context, info))
+ .then(payload => {
+ payload.clientMutationId = input.clientMutationId;
+ return payload;
94
+ });
95
}
96
};
97
0 commit comments