@@ -104,7 +104,8 @@ describe('Execute: Accepts any iterable as list value', () => {
104
104
{ data : { nest : { test : null } } ,
105
105
errors : [ {
106
106
message : 'Expected Iterable, but did not find one for field DataType.test.' ,
107
- locations : [ { line : 1 , column : 10 } ]
107
+ locations : [ { line : 1 , column : 10 } ] ,
108
+ path : [ 'nest' , 'test' ]
108
109
} ] }
109
110
) ) ;
110
111
@@ -157,7 +158,8 @@ describe('Execute: Handles list nullability', () => {
157
158
{ data : { nest : { test : null } } ,
158
159
errors : [
159
160
{ message : 'bad' ,
160
- locations : [ { line : 1 , column : 10 } ] }
161
+ locations : [ { line : 1 , column : 10 } ] ,
162
+ path : [ 'nest' , 'test' ] }
161
163
] }
162
164
) ) ;
163
165
@@ -180,7 +182,8 @@ describe('Execute: Handles list nullability', () => {
180
182
{ data : { nest : { test : [ 1 , null , 2 ] } } ,
181
183
errors : [
182
184
{ message : 'bad' ,
183
- locations : [ { line : 1 , column : 10 } ] }
185
+ locations : [ { line : 1 , column : 10 } ] ,
186
+ path : [ 'nest' , 'test' , 1 ] }
184
187
] }
185
188
) ) ;
186
189
@@ -208,7 +211,8 @@ describe('Execute: Handles list nullability', () => {
208
211
{ data : { nest : null } ,
209
212
errors : [
210
213
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
211
- locations : [ { line : 1 , column : 10 } ] }
214
+ locations : [ { line : 1 , column : 10 } ] ,
215
+ path : [ 'nest' , 'test' ] }
212
216
] }
213
217
) ) ;
214
218
@@ -231,7 +235,8 @@ describe('Execute: Handles list nullability', () => {
231
235
{ data : { nest : null } ,
232
236
errors : [
233
237
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
234
- locations : [ { line : 1 , column : 10 } ] }
238
+ locations : [ { line : 1 , column : 10 } ] ,
239
+ path : [ 'nest' , 'test' ] }
235
240
] }
236
241
) ) ;
237
242
@@ -240,7 +245,8 @@ describe('Execute: Handles list nullability', () => {
240
245
{ data : { nest : null } ,
241
246
errors : [
242
247
{ message : 'bad' ,
243
- locations : [ { line : 1 , column : 10 } ] }
248
+ locations : [ { line : 1 , column : 10 } ] ,
249
+ path : [ 'nest' , 'test' ] }
244
250
] }
245
251
) ) ;
246
252
@@ -263,7 +269,8 @@ describe('Execute: Handles list nullability', () => {
263
269
{ data : { nest : { test : [ 1 , null , 2 ] } } ,
264
270
errors : [
265
271
{ message : 'bad' ,
266
- locations : [ { line : 1 , column : 10 } ] }
272
+ locations : [ { line : 1 , column : 10 } ] ,
273
+ path : [ 'nest' , 'test' , 1 ] }
267
274
] }
268
275
) ) ;
269
276
@@ -286,7 +293,8 @@ describe('Execute: Handles list nullability', () => {
286
293
{ data : { nest : { test : null } } ,
287
294
errors : [
288
295
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
289
- locations : [ { line : 1 , column : 10 } ] }
296
+ locations : [ { line : 1 , column : 10 } ] ,
297
+ path : [ 'nest' , 'test' , 1 ] }
290
298
] }
291
299
) ) ;
292
300
@@ -309,7 +317,8 @@ describe('Execute: Handles list nullability', () => {
309
317
{ data : { nest : { test : null } } ,
310
318
errors : [
311
319
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
312
- locations : [ { line : 1 , column : 10 } ] }
320
+ locations : [ { line : 1 , column : 10 } ] ,
321
+ path : [ 'nest' , 'test' , 1 ] }
313
322
] }
314
323
) ) ;
315
324
@@ -323,7 +332,8 @@ describe('Execute: Handles list nullability', () => {
323
332
{ data : { nest : { test : null } } ,
324
333
errors : [
325
334
{ message : 'bad' ,
326
- locations : [ { line : 1 , column : 10 } ] }
335
+ locations : [ { line : 1 , column : 10 } ] ,
336
+ path : [ 'nest' , 'test' ] }
327
337
] }
328
338
) ) ;
329
339
@@ -341,7 +351,8 @@ describe('Execute: Handles list nullability', () => {
341
351
{ data : { nest : { test : null } } ,
342
352
errors : [
343
353
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
344
- locations : [ { line : 1 , column : 10 } ] }
354
+ locations : [ { line : 1 , column : 10 } ] ,
355
+ path : [ 'nest' , 'test' , 1 ] }
345
356
] }
346
357
) ) ;
347
358
@@ -350,7 +361,8 @@ describe('Execute: Handles list nullability', () => {
350
361
{ data : { nest : { test : null } } ,
351
362
errors : [
352
363
{ message : 'bad' ,
353
- locations : [ { line : 1 , column : 10 } ] }
364
+ locations : [ { line : 1 , column : 10 } ] ,
365
+ path : [ 'nest' , 'test' , 1 ] }
354
366
] }
355
367
) ) ;
356
368
@@ -375,7 +387,8 @@ describe('Execute: Handles list nullability', () => {
375
387
{ data : { nest : null } ,
376
388
errors : [
377
389
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
378
- locations : [ { line : 1 , column : 10 } ] }
390
+ locations : [ { line : 1 , column : 10 } ] ,
391
+ path : [ 'nest' , 'test' , 1 ] }
379
392
] }
380
393
) ) ;
381
394
@@ -384,7 +397,8 @@ describe('Execute: Handles list nullability', () => {
384
397
{ data : { nest : null } ,
385
398
errors : [
386
399
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
387
- locations : [ { line : 1 , column : 10 } ] }
400
+ locations : [ { line : 1 , column : 10 } ] ,
401
+ path : [ 'nest' , 'test' ] }
388
402
] }
389
403
) ) ;
390
404
@@ -402,7 +416,8 @@ describe('Execute: Handles list nullability', () => {
402
416
{ data : { nest : null } ,
403
417
errors : [
404
418
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
405
- locations : [ { line : 1 , column : 10 } ] }
419
+ locations : [ { line : 1 , column : 10 } ] ,
420
+ path : [ 'nest' , 'test' , 1 ] }
406
421
] }
407
422
) ) ;
408
423
@@ -411,7 +426,8 @@ describe('Execute: Handles list nullability', () => {
411
426
{ data : { nest : null } ,
412
427
errors : [
413
428
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
414
- locations : [ { line : 1 , column : 10 } ] }
429
+ locations : [ { line : 1 , column : 10 } ] ,
430
+ path : [ 'nest' , 'test' ] }
415
431
] }
416
432
) ) ;
417
433
@@ -420,7 +436,8 @@ describe('Execute: Handles list nullability', () => {
420
436
{ data : { nest : null } ,
421
437
errors : [
422
438
{ message : 'bad' ,
423
- locations : [ { line : 1 , column : 10 } ] }
439
+ locations : [ { line : 1 , column : 10 } ] ,
440
+ path : [ 'nest' , 'test' ] }
424
441
] }
425
442
) ) ;
426
443
@@ -438,7 +455,8 @@ describe('Execute: Handles list nullability', () => {
438
455
{ data : { nest : null } ,
439
456
errors : [
440
457
{ message : 'Cannot return null for non-nullable field DataType.test.' ,
441
- locations : [ { line : 1 , column : 10 } ] }
458
+ locations : [ { line : 1 , column : 10 } ] ,
459
+ path : [ 'nest' , 'test' , 1 ] }
442
460
] }
443
461
) ) ;
444
462
@@ -447,7 +465,8 @@ describe('Execute: Handles list nullability', () => {
447
465
{ data : { nest : null } ,
448
466
errors : [
449
467
{ message : 'bad' ,
450
- locations : [ { line : 1 , column : 10 } ] }
468
+ locations : [ { line : 1 , column : 10 } ] ,
469
+ path : [ 'nest' , 'test' , 1 ] }
451
470
] }
452
471
) ) ;
453
472
0 commit comments