File tree 3 files changed +12
-29
lines changed
3 files changed +12
-29
lines changed Original file line number Diff line number Diff line change @@ -101,13 +101,13 @@ import {
101
101
* }
102
102
*
103
103
* input IntroduceShipInput {
104
- * clientMutationId: string!
104
+ * clientMutationId: string
105
105
* shipName: string!
106
106
* factionId: ID!
107
107
* }
108
108
*
109
- * input IntroduceShipPayload {
110
- * clientMutationId: string!
109
+ * type IntroduceShipPayload {
110
+ * clientMutationId: string
111
111
* ship: Ship
112
112
* faction: Faction
113
113
* }
@@ -244,13 +244,13 @@ var queryType = new GraphQLObjectType({
244
244
*
245
245
* It creates these two types implicitly:
246
246
* input IntroduceShipInput {
247
- * clientMutationId: string!
247
+ * clientMutationId: string
248
248
* shipName: string!
249
249
* factionId: ID!
250
250
* }
251
251
*
252
- * input IntroduceShipPayload {
253
- * clientMutationId: string!
252
+ * type IntroduceShipPayload {
253
+ * clientMutationId: string
254
254
* ship: Ship
255
255
* faction: Faction
256
256
* }
Original file line number Diff line number Diff line change @@ -188,10 +188,6 @@ describe('mutationWithClientMutationId()', () => {
188
188
type {
189
189
name
190
190
kind
191
- ofType {
192
- name
193
- kind
194
- }
195
191
}
196
192
}
197
193
}
@@ -204,12 +200,8 @@ describe('mutationWithClientMutationId()', () => {
204
200
{
205
201
name : 'clientMutationId' ,
206
202
type : {
207
- name : null ,
208
- kind : 'NON_NULL' ,
209
- ofType : {
210
- name : 'String' ,
211
- kind : 'SCALAR'
212
- }
203
+ name : 'String' ,
204
+ kind : 'SCALAR'
213
205
}
214
206
}
215
207
]
@@ -229,10 +221,6 @@ describe('mutationWithClientMutationId()', () => {
229
221
type {
230
222
name
231
223
kind
232
- ofType {
233
- name
234
- kind
235
- }
236
224
}
237
225
}
238
226
}
@@ -247,18 +235,13 @@ describe('mutationWithClientMutationId()', () => {
247
235
type : {
248
236
name : 'Int' ,
249
237
kind : 'SCALAR' ,
250
- ofType : null
251
238
}
252
239
} ,
253
240
{
254
241
name : 'clientMutationId' ,
255
242
type : {
256
- name : null ,
257
- kind : 'NON_NULL' ,
258
- ofType : {
259
- name : 'String' ,
260
- kind : 'SCALAR'
261
- }
243
+ name : 'String' ,
244
+ kind : 'SCALAR'
262
245
}
263
246
}
264
247
]
Original file line number Diff line number Diff line change @@ -62,13 +62,13 @@ export function mutationWithClientMutationId(
62
62
var augmentedInputFields = ( ) => ( {
63
63
...resolveMaybeThunk ( inputFields ) ,
64
64
clientMutationId : {
65
- type : new GraphQLNonNull ( GraphQLString )
65
+ type : GraphQLString
66
66
}
67
67
} ) ;
68
68
var augmentedOutputFields = ( ) => ( {
69
69
...resolveMaybeThunk ( outputFields ) ,
70
70
clientMutationId : {
71
- type : new GraphQLNonNull ( GraphQLString )
71
+ type : GraphQLString
72
72
}
73
73
} ) ;
74
74
You can’t perform that action at this time.
0 commit comments