File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -58,13 +58,9 @@ type MutationConfig = {
58
58
export function mutationWithClientMutationId (
59
59
config : MutationConfig
60
60
) : GraphQLFieldConfig {
61
- var {
62
- name,
63
- inputFields,
64
- outputFields,
65
- mutateAndGetPayload,
66
- description
67
- } = config ;
61
+ var { name, inputFields, outputFields, mutateAndGetPayload } = config ;
62
+
63
+ var description = config . description ? config . description : undefined ;
68
64
var augmentedInputFields = ( ) => ( {
69
65
...resolveMaybeThunk ( inputFields ) ,
70
66
clientMutationId : {
@@ -88,7 +84,7 @@ export function mutationWithClientMutationId(
88
84
fields : augmentedInputFields
89
85
} ) ;
90
86
91
- return {
87
+ var mutationField = {
92
88
type : outputType ,
93
89
description : description ,
94
90
args : {
@@ -101,4 +97,6 @@ export function mutationWithClientMutationId(
101
97
} ) ;
102
98
}
103
99
} ;
100
+
101
+ return mutationField ;
104
102
}
You can’t perform that action at this time.
0 commit comments