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 adb856f commit a9765f1Copy full SHA for a9765f1
src/mutation/mutation.js
@@ -58,18 +58,18 @@ export function mutationWithClientMutationId(
58
config: MutationConfig
59
): GraphQLFieldConfig {
60
var {name, inputFields, outputFields, mutateAndGetPayload} = config;
61
- var augmentedInputFields = {
+ var augmentedInputFields = () => ({
62
...resolveMaybeThunk(inputFields),
63
clientMutationId: {
64
type: new GraphQLNonNull(GraphQLString)
65
}
66
- };
67
- var augmentedOutputFields = {
+ });
+ var augmentedOutputFields = () => ({
68
...resolveMaybeThunk(outputFields),
69
70
71
72
73
74
var outputType = new GraphQLObjectType({
75
name: name + 'Payload',
0 commit comments