Commit 0109d7b
committed
Skip nullness check for Map-like return types of @BatchMapping methods
Prior to this commit, the schema inspector would perform nullness checks
for fields and data fetchers. `@BatchMapping` methods can return
`Map<Book, Author>` types and such cases can be raised as inconsistent
with the schema declaration. This check is invalid because we cannot
infer the nullness of the actual schema field given a `Map` fetched
using a `DataLoader`.
This commit ensures that such cases are skipped.
Closes gh-13341 parent 15a7412 commit 0109d7b
File tree
2 files changed
+52
-2
lines changed- spring-graphql/src
- main/java/org/springframework/graphql/execution
- test/java/org/springframework/graphql/execution
2 files changed
+52
-2
lines changedLines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
238 | | - | |
239 | 238 | | |
240 | 239 | | |
241 | | - | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
242 | 249 | | |
243 | 250 | | |
244 | 251 | | |
| |||
Lines changed: 43 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
| |||
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
360 | 363 | | |
361 | 364 | | |
362 | 365 | | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
363 | 387 | | |
364 | 388 | | |
365 | 389 | | |
| |||
422 | 446 | | |
423 | 447 | | |
424 | 448 | | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
425 | 464 | | |
426 | 465 | | |
427 | 466 | | |
428 | 467 | | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
429 | 472 | | |
430 | 473 | | |
431 | 474 | | |
| |||
0 commit comments