Skip to content

Commit 8241d78

Browse files
committed
Add examples combining null-only-on-error with list and non-null
1 parent f0e3d6e commit 8241d78

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/Section 3 -- Type System.md

+8
Original file line numberDiff line numberDiff line change
@@ -1957,10 +1957,18 @@ Following are examples of result coercion with various types and values:
19571957
| `[Int]*` | `null` | `null` (With logged coercion error) |
19581958
| `[Int]*` | `[1, 2, null]` | `[1, 2, null]` |
19591959
| `[Int]*` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
1960+
| `[Int!]*` | `[1, 2, 3]` | `[1, 2, 3]` |
1961+
| `[Int!]*` | `null` | `null` (With logged coercion error) |
1962+
| `[Int!]*` | `[1, 2, null]` | `null` (With logged coercion error) |
1963+
| `[Int!]*` | `[1, 2, Error]` | `null` (With logged error) |
19601964
| `[Int*]` | `[1, 2, 3]` | `[1, 2, 3]` |
19611965
| `[Int*]` | `null` | `null` |
19621966
| `[Int*]` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |
19631967
| `[Int*]` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
1968+
| `[Int*]!` | `[1, 2, 3]` | `[1, 2, 3]` |
1969+
| `[Int*]!` | `null` | Error: Value cannot be null |
1970+
| `[Int*]!` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |
1971+
| `[Int*]!` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
19641972
| `[Int*]*` | `[1, 2, 3]` | `[1, 2, 3]` |
19651973
| `[Int*]*` | `null` | `null` (With logged coercion error) |
19661974
| `[Int*]*` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |

0 commit comments

Comments
 (0)