From 8241d78b68154ce0322fd20dc1fae0ccab9792b6 Mon Sep 17 00:00:00 2001 From: Benjie Gillam Date: Wed, 4 Oct 2023 16:24:40 +0100 Subject: [PATCH] Add examples combining null-only-on-error with list and non-null --- spec/Section 3 -- Type System.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spec/Section 3 -- Type System.md b/spec/Section 3 -- Type System.md index 7db0e8a95..e0fba0751 100644 --- a/spec/Section 3 -- Type System.md +++ b/spec/Section 3 -- Type System.md @@ -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) |