Skip to content

Commit

Permalink
Add examples combining null-only-on-error with list and non-null
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Oct 4, 2023
1 parent f0e3d6e commit 8241d78
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -1957,10 +1957,18 @@ Following are examples of result coercion with various types and values:
| `[Int]*` | `null` | `null` (With logged coercion error) |
| `[Int]*` | `[1, 2, null]` | `[1, 2, null]` |
| `[Int]*` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
| `[Int!]*` | `[1, 2, 3]` | `[1, 2, 3]` |
| `[Int!]*` | `null` | `null` (With logged coercion error) |
| `[Int!]*` | `[1, 2, null]` | `null` (With logged coercion error) |
| `[Int!]*` | `[1, 2, Error]` | `null` (With logged error) |
| `[Int*]` | `[1, 2, 3]` | `[1, 2, 3]` |
| `[Int*]` | `null` | `null` |
| `[Int*]` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |
| `[Int*]` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
| `[Int*]!` | `[1, 2, 3]` | `[1, 2, 3]` |
| `[Int*]!` | `null` | Error: Value cannot be null |
| `[Int*]!` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |
| `[Int*]!` | `[1, 2, Error]` | `[1, 2, null]` (With logged error) |
| `[Int*]*` | `[1, 2, 3]` | `[1, 2, 3]` |
| `[Int*]*` | `null` | `null` (With logged coercion error) |
| `[Int*]*` | `[1, 2, null]` | `[1, 2, null]` (With logged coercion error) |
Expand Down

0 comments on commit 8241d78

Please sign in to comment.